pub enum FaultCheck {
Pass,
Inject {
message: String,
},
Delay {
us: u64,
},
}Expand description
Result of a plugin fault check.
Variants§
Pass
No fault — operation proceeds normally.
Inject
Inject a fault with the given error message.
Delay
Inject a delay (microseconds) before the operation.
Trait Implementations§
Source§impl Clone for FaultCheck
impl Clone for FaultCheck
Source§fn clone(&self) -> FaultCheck
fn clone(&self) -> FaultCheck
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 moreAuto Trait Implementations§
impl Freeze for FaultCheck
impl RefUnwindSafe for FaultCheck
impl Send for FaultCheck
impl Sync for FaultCheck
impl Unpin for FaultCheck
impl UnsafeUnpin for FaultCheck
impl UnwindSafe for FaultCheck
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