pub enum Msg<Call, Cast, Reply> {
Call(Call, Sender<Reply>),
Cast(Cast),
}Expand description
A message sent to an actor.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<Call, Cast, Reply> Freeze for Msg<Call, Cast, Reply>
impl<Call, Cast, Reply> !RefUnwindSafe for Msg<Call, Cast, Reply>
impl<Call, Cast, Reply> Send for Msg<Call, Cast, Reply>
impl<Call, Cast, Reply> Sync for Msg<Call, Cast, Reply>
impl<Call, Cast, Reply> Unpin for Msg<Call, Cast, Reply>
impl<Call, Cast, Reply> !UnwindSafe for Msg<Call, Cast, Reply>
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