pub enum ShutdownReason {
Graceful,
Crash,
}Expand description
The reason why the actor system stopped, returned by SystemRunner::run.
Variants§
Graceful
System stopped gracefully (e.g., SIGTERM); exit with code 0.
Crash
System stopped due to an unrecoverable actor failure; exit with a non-zero code.
Implementations§
Trait Implementations§
Source§impl Clone for ShutdownReason
impl Clone for ShutdownReason
Source§fn clone(&self) -> ShutdownReason
fn clone(&self) -> ShutdownReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShutdownReason
impl Debug for ShutdownReason
Source§impl PartialEq for ShutdownReason
impl PartialEq for ShutdownReason
impl Eq for ShutdownReason
impl StructuralPartialEq for ShutdownReason
Auto Trait Implementations§
impl Freeze for ShutdownReason
impl RefUnwindSafe for ShutdownReason
impl Send for ShutdownReason
impl Sync for ShutdownReason
impl Unpin for ShutdownReason
impl UnsafeUnpin for ShutdownReason
impl UnwindSafe for ShutdownReason
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