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 "".
Members
of
fn of<T: 'static>(contract: Option<&str>) -> Self
The channel of the messages of type T with contract.
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.
message_type
fn message_type(self: &Self) -> TypeId
The type of the messages.
type_name
fn type_name(self: &Self) -> &'static str
The name of the type of the messages.
contract
fn contract(self: &Self) -> Option<&str>
The contract of the channel.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClonePartialEqEqHashDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.