pub struct Envelope(/* private fields */);Expand description
An envelope is a wrapper around message with additional metadata, involved in message passing between actors.
Envelopes aren’t created directly in code, but are produced internally
by Context’s methods.
Converting an envelope to a message is usually done by calling the msg!
macro, which supports both owned and borrowed usages.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl !Sync for Envelope
impl Unpin for Envelope
impl UnsafeUnpin for Envelope
impl UnwindSafe for Envelope
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