pub struct Mailbox { /* private fields */ }Expand description
Actor mailbox for receiving messages.
Mailboxes are bounded channels that provide backpressure when full. This prevents fast senders from overwhelming slow receivers.
The mailbox now supports selective receive (similar to Erlang’s receive)
by maintaining a pending queue for messages that don’t match the current
receive pattern.
Implementations§
Auto Trait Implementations§
impl !Freeze for Mailbox
impl RefUnwindSafe for Mailbox
impl Send for Mailbox
impl Sync for Mailbox
impl Unpin for Mailbox
impl UnsafeUnpin for Mailbox
impl UnwindSafe for Mailbox
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