pub enum ShutdownPhaseStatus {
Succeeded,
Failed(String),
TimedOut,
}Expand description
Final status for one shutdown phase.
Variants§
Succeeded
The phase completed successfully.
Failed(String)
The phase returned an error string.
TimedOut
The phase exceeded its timeout.
Implementations§
Source§impl ShutdownPhaseStatus
impl ShutdownPhaseStatus
Sourcepub const fn is_failure(&self) -> bool
pub const fn is_failure(&self) -> bool
Returns whether this phase did not complete successfully.
Trait Implementations§
Source§impl Clone for ShutdownPhaseStatus
impl Clone for ShutdownPhaseStatus
Source§fn clone(&self) -> ShutdownPhaseStatus
fn clone(&self) -> ShutdownPhaseStatus
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 ShutdownPhaseStatus
impl Debug for ShutdownPhaseStatus
Source§impl PartialEq for ShutdownPhaseStatus
impl PartialEq for ShutdownPhaseStatus
Source§fn eq(&self, other: &ShutdownPhaseStatus) -> bool
fn eq(&self, other: &ShutdownPhaseStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ShutdownPhaseStatus
impl StructuralPartialEq for ShutdownPhaseStatus
Auto Trait Implementations§
impl Freeze for ShutdownPhaseStatus
impl RefUnwindSafe for ShutdownPhaseStatus
impl Send for ShutdownPhaseStatus
impl Sync for ShutdownPhaseStatus
impl Unpin for ShutdownPhaseStatus
impl UnsafeUnpin for ShutdownPhaseStatus
impl UnwindSafe for ShutdownPhaseStatus
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.