pub struct Mailbox<M> { /* private fields */ }
Expand description
Shared single-threaded multi-sender multi-receiver message queue.
An instance of Mailbox
is considered ‘authoritative’.
You can use it to create senders, and register actors that should be notified.
You are not actually required to a mailbox, if your actor has a different mechanism for being notified.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for Mailbox<M>
impl<M> !RefUnwindSafe for Mailbox<M>
impl<M> !Send for Mailbox<M>
impl<M> !Sync for Mailbox<M>
impl<M> Unpin for Mailbox<M>
impl<M> !UnwindSafe for Mailbox<M>
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