pub enum ChaosPreset {
Gentle,
Moderate,
Aggressive,
Extreme,
}Expand description
Chaos engineering preset
Variants§
Gentle
Gentle chaos (minimal impact)
Moderate
Moderate chaos
Aggressive
Aggressive chaos
Extreme
Extreme chaos (maximum stress)
Implementations§
Source§impl ChaosPreset
impl ChaosPreset
Sourcepub fn memory_limit_factor(&self) -> f64
pub fn memory_limit_factor(&self) -> f64
Get memory limit factor (0.0-1.0)
Sourcepub fn cpu_throttle_factor(&self) -> f64
pub fn cpu_throttle_factor(&self) -> f64
Get CPU throttle factor (0.0-1.0)
Sourcepub fn network_latency_ms(&self) -> u32
pub fn network_latency_ms(&self) -> u32
Get network latency injection in milliseconds
Sourcepub fn failure_rate(&self) -> f64
pub fn failure_rate(&self) -> f64
Get failure injection rate (0.0-1.0)
Trait Implementations§
Source§impl Clone for ChaosPreset
impl Clone for ChaosPreset
Source§fn clone(&self) -> ChaosPreset
fn clone(&self) -> ChaosPreset
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 moreSource§impl Debug for ChaosPreset
impl Debug for ChaosPreset
Source§impl PartialEq for ChaosPreset
impl PartialEq for ChaosPreset
impl Copy for ChaosPreset
impl Eq for ChaosPreset
impl StructuralPartialEq for ChaosPreset
Auto Trait Implementations§
impl Freeze for ChaosPreset
impl RefUnwindSafe for ChaosPreset
impl Send for ChaosPreset
impl Sync for ChaosPreset
impl Unpin for ChaosPreset
impl UnsafeUnpin for ChaosPreset
impl UnwindSafe for ChaosPreset
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