pub enum Event<M> {
Message(M),
Signal(Signal),
}Expand description
Either a Message or a Signal received by an actor.
Note: only actors that “trap exits” can handle signals.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for Event<M>where
M: Freeze,
impl<M> !RefUnwindSafe for Event<M>
impl<M> Send for Event<M>where
M: Send,
impl<M> Sync for Event<M>where
M: Sync,
impl<M> Unpin for Event<M>where
M: Unpin,
impl<M> !UnwindSafe for Event<M>
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