pub struct Envelope<T: Message> {
pub sender: Option<BasicActorRef>,
pub msg: T,
}
Expand description
Wraps message and sender
Fields§
§sender: Option<BasicActorRef>
§msg: T
Trait Implementations§
impl<T: Message> Send for Envelope<T>
Auto Trait Implementations§
impl<T> Freeze for Envelope<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Envelope<T>
impl<T> Sync for Envelope<T>where
T: Sync,
impl<T> Unpin for Envelope<T>where
T: Unpin,
impl<T> !UnwindSafe for Envelope<T>
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