pub enum MessengerType {
Addressable(Address),
Broker(Filter),
Unbound,
}
Expand description
The messengers that can participate in messaging
Variants§
Addressable(Address)
An endpoint in the messenger graph. Can have messages specifically addressed to it and can author new messages.
Broker(Filter)
A intermediary messenger. Will receive every forwarded message. Brokers are able to send and reply to messages, but the main purpose is to observe messages. An optional filter may be specified, which limits the messages directed to this broker.
Unbound
A messenger that cannot be reached by an address.
Trait Implementations§
Source§impl Clone for MessengerType
impl Clone for MessengerType
Source§fn clone(&self) -> MessengerType
fn clone(&self) -> MessengerType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MessengerType
impl !RefUnwindSafe for MessengerType
impl !Send for MessengerType
impl !Sync for MessengerType
impl Unpin for MessengerType
impl !UnwindSafe for MessengerType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)