#[non_exhaustive]pub enum ShutdownFinalizerOutcome {
Completed,
Failed,
Panicked,
TimedOut,
NotRunDeadline,
}Expand description
Redacted terminal outcome for one runtime-owned shutdown finalizer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Completed
The finalizer completed within its cap and the global deadline.
Failed
The finalizer returned its closed failure category.
Panicked
The finalizer task panicked and was contained.
TimedOut
The finalizer exceeded its cap or the remaining global deadline.
NotRunDeadline
The global deadline expired before this finalizer could start.
Trait Implementations§
Source§impl Clone for ShutdownFinalizerOutcome
impl Clone for ShutdownFinalizerOutcome
Source§fn clone(&self) -> ShutdownFinalizerOutcome
fn clone(&self) -> ShutdownFinalizerOutcome
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 moreimpl Copy for ShutdownFinalizerOutcome
Source§impl Debug for ShutdownFinalizerOutcome
impl Debug for ShutdownFinalizerOutcome
impl Eq for ShutdownFinalizerOutcome
Source§impl PartialEq for ShutdownFinalizerOutcome
impl PartialEq for ShutdownFinalizerOutcome
impl StructuralPartialEq for ShutdownFinalizerOutcome
Auto Trait Implementations§
impl Freeze for ShutdownFinalizerOutcome
impl RefUnwindSafe for ShutdownFinalizerOutcome
impl Send for ShutdownFinalizerOutcome
impl Sync for ShutdownFinalizerOutcome
impl Unpin for ShutdownFinalizerOutcome
impl UnsafeUnpin for ShutdownFinalizerOutcome
impl UnwindSafe for ShutdownFinalizerOutcome
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.