pub struct MailboxSender { /* private fields */ }Expand description
The sender half of a mailbox. Clonable — multiple senders share
the same underlying queue via Arc.
Implementations§
Source§impl MailboxSender
impl MailboxSender
Sourcepub fn noop() -> Self
pub fn noop() -> Self
Creates a noop sender — all sends return Ok but messages are dropped.
Used by crate::actor::Addr::noop for placeholder addresses.
Trait Implementations§
Source§impl Clone for MailboxSender
impl Clone for MailboxSender
Source§fn clone(&self) -> MailboxSender
fn clone(&self) -> MailboxSender
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for MailboxSender
impl !UnwindSafe for MailboxSender
impl Freeze for MailboxSender
impl Send for MailboxSender
impl Sync for MailboxSender
impl Unpin for MailboxSender
impl UnsafeUnpin for MailboxSender
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