pub enum ShutdownCause {
Completed,
Requested,
Signal,
ServiceRequested {
service: &'static str,
},
FatalService {
service: &'static str,
},
ReadinessFailed {
service: &'static str,
},
}Expand description
Reason the supervisor stopped running.
Variants§
Completed
Every service finished and nothing requested shutdown.
Requested
Shutdown was requested externally by the embedding runtime.
Signal
Shutdown was triggered by an operating-system signal.
ServiceRequested
A service returned ServiceOutcome::RequestedShutdown.
FatalService
A service failed and policy escalated that failure into shutdown.
ReadinessFailed
A startup-gated service ended before crossing its startup gate.
Trait Implementations§
Source§impl Clone for ShutdownCause
impl Clone for ShutdownCause
Source§fn clone(&self) -> ShutdownCause
fn clone(&self) -> ShutdownCause
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 ShutdownCause
impl Debug for ShutdownCause
Source§impl PartialEq for ShutdownCause
impl PartialEq for ShutdownCause
impl Eq for ShutdownCause
impl StructuralPartialEq for ShutdownCause
Auto Trait Implementations§
impl Freeze for ShutdownCause
impl RefUnwindSafe for ShutdownCause
impl Send for ShutdownCause
impl Sync for ShutdownCause
impl Unpin for ShutdownCause
impl UnsafeUnpin for ShutdownCause
impl UnwindSafe for ShutdownCause
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSupervisorState<S> for Swhere
S: Clone,
impl<S> FromSupervisorState<S> for Swhere
S: Clone,
Source§fn from_state(state: &S) -> S
fn from_state(state: &S) -> S
Projects
Self out of the root supervisor state.