pub enum ExitReason {
RequestedShutdown(ShutdownReason),
RunCompleted,
RunError(Arc<Error>),
}Expand description
Why the service exited.
Richer than ShutdownReason because it also captures the “ran to
completion normally” and “run method returned an error” cases.
Variants§
RequestedShutdown(ShutdownReason)
Shutdown was requested externally; the carried reason explains how.
RunCompleted
The node’s run method returned Ok(()) without any outside signal.
RunError(Arc<Error>)
The node’s run method returned an error. The Arc<anyhow::Error>
carries the original.
Trait Implementations§
Source§impl Clone for ExitReason
impl Clone for ExitReason
Source§fn clone(&self) -> ExitReason
fn clone(&self) -> ExitReason
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 moreAuto Trait Implementations§
impl Freeze for ExitReason
impl RefUnwindSafe for ExitReason
impl Send for ExitReason
impl Sync for ExitReason
impl Unpin for ExitReason
impl UnsafeUnpin for ExitReason
impl UnwindSafe for ExitReason
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