pub enum FaultState {
Running,
Faulted {
reason: FaultReason,
since_ms: u32,
},
}Expand description
Per-task fault state. Stored as packed AtomicU64 in TaskEntry;
the public API hands callers this snapshot view.
Variants§
Running
Task is healthy and dispatches normally.
Faulted
Task is faulted; main item is not dispatched until cleared.
Fields
§
reason: FaultReasonWhy the task transitioned to Faulted.
Trait Implementations§
Source§impl Clone for FaultState
impl Clone for FaultState
Source§fn clone(&self) -> FaultState
fn clone(&self) -> FaultState
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 FaultState
impl Debug for FaultState
Source§impl PartialEq for FaultState
impl PartialEq for FaultState
Source§fn eq(&self, other: &FaultState) -> bool
fn eq(&self, other: &FaultState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FaultState
impl Eq for FaultState
impl StructuralPartialEq for FaultState
Auto Trait Implementations§
impl Freeze for FaultState
impl RefUnwindSafe for FaultState
impl Send for FaultState
impl Sync for FaultState
impl Unpin for FaultState
impl UnsafeUnpin for FaultState
impl UnwindSafe for FaultState
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