pub enum OutcomeKind {
Ok,
NotStarted,
Interrupted,
NetworkError,
}Expand description
Which outcome one is.
Variants§
Ok
A value of the Tool’s result type.
NotStarted
The work did not begin, and why.
Interrupted
The work began and stopped before a value, and why.
NetworkError
The network to the Tool failed; sent says whether the request
went out.
Implementations§
Source§impl OutcomeKind
impl OutcomeKind
Sourcepub const ALL: &'static [OutcomeKind]
pub const ALL: &'static [OutcomeKind]
Every kind, in declaration order.
Sourcepub fn of(number: u64) -> Option<OutcomeKind>
pub fn of(number: u64) -> Option<OutcomeKind>
The kind whose constructor is written with number, if any.
Trait Implementations§
Source§impl Clone for OutcomeKind
impl Clone for OutcomeKind
impl Copy for OutcomeKind
Source§impl Debug for OutcomeKind
impl Debug for OutcomeKind
impl Eq for OutcomeKind
Source§impl Hash for OutcomeKind
impl Hash for OutcomeKind
Source§impl Ord for OutcomeKind
impl Ord for OutcomeKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OutcomeKind
impl PartialEq for OutcomeKind
Source§impl PartialOrd for OutcomeKind
impl PartialOrd for OutcomeKind
impl StructuralPartialEq for OutcomeKind
Auto Trait Implementations§
impl Forget for OutcomeKind
impl Freeze for OutcomeKind
impl Move 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