FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MessageKey

    struct · ferroui-reactiveui · v0.5.0

    struct MessageKey
    

    The channel of a message bus: the type of the messages and the contract that tells apart the messages of one type (the key (Type, string? Contract) of upstream's MessageBus).

    No contract (None) and the empty contract are two channels, as upstream's null and "".

    View source

    Members

    of

    fn of<T: 'static>(contract: Option<&str>) -> Self
    

    The channel of the messages of type T with contract.

    Source

    new

    fn new(message_type: TypeId, type_name: &'static str, contract: Option<&str>) -> Self
    

    The channel of the messages of the type message_type with contract; type_name is the name the logs show.

    Source

    message_type

    fn message_type(self: &Self) -> TypeId
    

    The type of the messages.

    Source

    type_name

    fn type_name(self: &Self) -> &'static str
    

    The name of the type of the messages.

    Source

    contract

    fn contract(self: &Self) -> Option<&str>
    

    The contract of the channel.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Clone
    • PartialEq
    • Eq
    • Hash
    • Debug

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.