pub enum FaultType {
Delay {
delay_ms: u64,
},
Error {
message: String,
},
Drop,
Corrupt,
}Expand description
The type of fault to inject into a command.
Variants§
Delay
Add artificial latency before command execution.
Error
Return an error without executing the command.
Drop
Drop the response entirely (return empty/timeout-like response).
Corrupt
Execute normally but corrupt the response (randomize field values).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FaultType
impl RefUnwindSafe for FaultType
impl Send for FaultType
impl Sync for FaultType
impl Unpin for FaultType
impl UnsafeUnpin for FaultType
impl UnwindSafe for FaultType
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