#[non_exhaustive]pub enum TaskOutcomeKind {
Completed,
Failed,
Fatal,
Canceled,
ForceAborted,
Panicked,
Rejected,
}Expand description
Machine-readable category of a final TaskOutcome.
It mirrors TaskOutcome without diagnostic text or source errors.
Events use it for machine-readable reporting.
Use TaskOutcome::kind when the complete outcome is already available.
Match with a wildcard arm because new outcome categories may be added.
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
Final attempt succeeded and policy stopped the task.
Failed
A non-fatal failure reached a policy or retry-limit stop condition.
Fatal
The task reported a permanent failure.
Canceled
Cancellation was requested or reported cooperatively.
ForceAborted
Taskvisor requested abort after cooperative cancellation did not complete.
Panicked
The task actor or protected cleanup panicked.
Rejected
Admission rejected the work before its task body ran.
Implementations§
Trait Implementations§
Source§impl Clone for TaskOutcomeKind
impl Clone for TaskOutcomeKind
Source§fn clone(&self) -> TaskOutcomeKind
fn clone(&self) -> TaskOutcomeKind
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 TaskOutcomeKind
Source§impl Debug for TaskOutcomeKind
impl Debug for TaskOutcomeKind
impl Eq for TaskOutcomeKind
Source§impl Hash for TaskOutcomeKind
impl Hash for TaskOutcomeKind
Source§impl PartialEq for TaskOutcomeKind
impl PartialEq for TaskOutcomeKind
impl StructuralPartialEq for TaskOutcomeKind
Auto Trait Implementations§
impl Freeze for TaskOutcomeKind
impl RefUnwindSafe for TaskOutcomeKind
impl Send for TaskOutcomeKind
impl Sync for TaskOutcomeKind
impl Unpin for TaskOutcomeKind
impl UnsafeUnpin for TaskOutcomeKind
impl UnwindSafe for TaskOutcomeKind
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