#[non_exhaustive]pub enum Fault {
None,
Stall,
Wedge,
Crash,
Hog(Duration),
}Expand description
A fault injected into a node through TaskNode::inject. The verbs act on
the task, not the worker.
- Stall: stop polling the worker.
- Wedge: hide shutdown and swallow the ack.
- Crash: drop the worker future.
- Hog: busy-spin the executor for the given bound.
Off by default. For benches, tests, and dashboards.
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.
None
Healthy.
Stall
Stop polling the worker.
Wedge
Hide the shutdown request and swallow the ack.
Crash
Drop the worker future; the node reads as exited.
Hog(Duration)
Busy-spin the executor for the given bound.
Implementations§
Trait Implementations§
impl Copy for Fault
impl Eq for Fault
impl StructuralPartialEq for Fault
Auto Trait Implementations§
impl Freeze for Fault
impl RefUnwindSafe for Fault
impl Send for Fault
impl Sync for Fault
impl Unpin for Fault
impl UnsafeUnpin for Fault
impl UnwindSafe for Fault
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