pub enum ActorStopReason {
Normal,
Killed,
Error(Error),
}Expand description
Represents the reason an actor stopped.
Variants§
Normal
Actor stopped normally after processing a StopGracefully signal or
when its Runtime finished processing messages.
Killed
Actor was terminated by a kill signal.
Error(Error)
Actor stopped due to an error, such as a panic in a message handler
or a failure in one of its lifecycle hooks (on_start, on_stop).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ActorStopReason
impl RefUnwindSafe for ActorStopReason
impl Send for ActorStopReason
impl Sync for ActorStopReason
impl Unpin for ActorStopReason
impl UnwindSafe for ActorStopReason
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