pub struct FaultConfig {
pub fault_type: FaultType,
pub probability: f64,
pub operation_filter: Option<String>,
pub max_injections: Option<u64>,
}Expand description
Configuration for a specific fault.
Fields§
§fault_type: FaultTypeThe type of fault
probability: f64Probability of injection (0.0 to 1.0)
operation_filter: Option<String>Optional operation filter (substring match)
max_injections: Option<u64>Maximum number of injections (None = unlimited)
Implementations§
Source§impl FaultConfig
impl FaultConfig
Trait Implementations§
Source§impl Clone for FaultConfig
impl Clone for FaultConfig
Source§fn clone(&self) -> FaultConfig
fn clone(&self) -> FaultConfig
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 FaultConfig
impl RefUnwindSafe for FaultConfig
impl Send for FaultConfig
impl Sync for FaultConfig
impl Unpin for FaultConfig
impl UnwindSafe for FaultConfig
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