pub enum ShutdownOutcome {
Clean,
RuntimeFailure {
error: RuntimeFailure,
},
Timeout,
}Expand description
The result of bounded cleanup after a graceful shutdown request.
Variants§
Clean
Every managed task, resource, and Module generation was cleaned up.
RuntimeFailure
Cleanup completed but a Module or resource reported a Runtime Failure.
Fields
§
error: RuntimeFailureTimeout
The global shutdown deadline expired; remaining work was terminated.
Trait Implementations§
Source§impl Clone for ShutdownOutcome
impl Clone for ShutdownOutcome
Source§fn clone(&self) -> ShutdownOutcome
fn clone(&self) -> ShutdownOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShutdownOutcome
impl Debug for ShutdownOutcome
impl Eq for ShutdownOutcome
Source§impl PartialEq for ShutdownOutcome
impl PartialEq for ShutdownOutcome
impl StructuralPartialEq for ShutdownOutcome
Auto Trait Implementations§
impl Freeze for ShutdownOutcome
impl RefUnwindSafe for ShutdownOutcome
impl Send for ShutdownOutcome
impl Sync for ShutdownOutcome
impl Unpin for ShutdownOutcome
impl UnsafeUnpin for ShutdownOutcome
impl UnwindSafe for ShutdownOutcome
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