#[non_exhaustive]pub enum Fault {
Pass,
Fail(Error),
LostResponse(Error),
}Expand description
A scripted outcome for one future operation.
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.
Pass
Let the operation through untouched (a placeholder that lets a real
fault target the n-th operation; see Mem::inject_after).
Fail(Error)
Fail without applying the operation.
LostResponse(Error)
Apply the operation, then report this error.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Fault
impl !UnwindSafe for Fault
impl Freeze for Fault
impl Send for Fault
impl Sync for Fault
impl Unpin for Fault
impl UnsafeUnpin 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