pub enum FaultReason {
BudgetExceeded {
took_ms: u32,
budget_ms: u32,
},
ExecutorFaulted,
}Expand description
Why a task transitioned to Faulted.
Variants§
BudgetExceeded
The task’s execute() ran longer than its declared budget.
took_ms is saturated to u32::MAX ms (~49.7 days).
Fields
ExecutorFaulted
The executor entered Faulted while this task was Running.
The cascade transition is automatic; per-task observers do
not fire (only Observer::on_executor_fault does).
Trait Implementations§
Source§impl Clone for FaultReason
impl Clone for FaultReason
Source§fn clone(&self) -> FaultReason
fn clone(&self) -> FaultReason
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 FaultReason
impl Debug for FaultReason
Source§impl PartialEq for FaultReason
impl PartialEq for FaultReason
Source§fn eq(&self, other: &FaultReason) -> bool
fn eq(&self, other: &FaultReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FaultReason
impl Eq for FaultReason
impl StructuralPartialEq for FaultReason
Auto Trait Implementations§
impl Freeze for FaultReason
impl RefUnwindSafe for FaultReason
impl Send for FaultReason
impl Sync for FaultReason
impl Unpin for FaultReason
impl UnsafeUnpin for FaultReason
impl UnwindSafe for FaultReason
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