pub enum Signal {
Stop,
Terminate,
}Expand description
A message which is used to stop/terminate an actor.
Variants§
Stop
Stop the actor.
Set the actor’s state to Stopping and trigger
the stopping method of the actor. The actor might be able to resume
by itself.
Terminate
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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