pub enum FaultMode {
Panic,
Disconnect,
Timeout,
JsonFormatError,
Nack,
}Expand description
Fault injection modes for testing error handling and recovery mechanisms.
Variants§
Panic
Trigger a thread panic.
Disconnect
Simulate a connection/network error (retryable).
Timeout
Simulate a timeout error (retryable).
JsonFormatError
Simulate a JSON format error (non-retryable).
Nack
Return a negative acknowledgement (for handlers).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FaultMode
impl<'de> Deserialize<'de> for FaultMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for FaultMode
impl Eq for FaultMode
impl StructuralPartialEq for FaultMode
Auto Trait Implementations§
impl Freeze for FaultMode
impl RefUnwindSafe for FaultMode
impl Send for FaultMode
impl Sync for FaultMode
impl Unpin for FaultMode
impl UnsafeUnpin for FaultMode
impl UnwindSafe for FaultMode
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