pub enum OutcomeKind {
CompletedJob,
IdleExit,
Failed,
Orphaned,
}Expand description
Which terminal thing happened, as a closed vocabulary.
The distinction g2 renders: an idle exit is the accepted surplus case and
not a failure, and showing it as one sends an operator hunting a fault
that does not exist.
Variants§
Implementations§
Source§impl OutcomeKind
impl OutcomeKind
pub const fn of(outcome: &AttemptOutcome) -> Self
pub const fn is_failure(&self) -> bool
pub const fn as_str(&self) -> &'static str
Trait Implementations§
Source§impl Clone for OutcomeKind
impl Clone for OutcomeKind
Source§fn clone(&self) -> OutcomeKind
fn clone(&self) -> OutcomeKind
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 OutcomeKind
Source§impl Debug for OutcomeKind
impl Debug for OutcomeKind
Source§impl Display for OutcomeKind
impl Display for OutcomeKind
impl Eq for OutcomeKind
Source§impl PartialEq for OutcomeKind
impl PartialEq for OutcomeKind
impl StructuralPartialEq for OutcomeKind
Auto Trait Implementations§
impl Freeze for OutcomeKind
impl RefUnwindSafe for OutcomeKind
impl Send for OutcomeKind
impl Sync for OutcomeKind
impl Unpin for OutcomeKind
impl UnsafeUnpin for OutcomeKind
impl UnwindSafe for OutcomeKind
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.