#[non_exhaustive]pub enum TaskOutcome {
Success,
Failure,
Canceled,
Timeout,
}Expand description
Task execution outcome for metrics classification.
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.
Success
Task completed successfully.
Failure
Task failed.
Canceled
Task canceled.
Timeout
Task timeout.
Implementations§
Trait Implementations§
Source§impl Clone for TaskOutcome
impl Clone for TaskOutcome
Source§fn clone(&self) -> TaskOutcome
fn clone(&self) -> TaskOutcome
Returns a duplicate of the value. Read more
1.0.0 · 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 TaskOutcome
impl Debug for TaskOutcome
Source§impl PartialEq for TaskOutcome
impl PartialEq for TaskOutcome
impl Copy for TaskOutcome
impl Eq for TaskOutcome
impl StructuralPartialEq for TaskOutcome
Auto Trait Implementations§
impl Freeze for TaskOutcome
impl RefUnwindSafe for TaskOutcome
impl Send for TaskOutcome
impl Sync for TaskOutcome
impl Unpin for TaskOutcome
impl UnsafeUnpin for TaskOutcome
impl UnwindSafe for TaskOutcome
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