pub struct ChaosStatistics {
pub enabled: bool,
pub error_rate: f64,
pub delay_rate: f64,
pub min_delay_ms: u64,
pub max_delay_ms: u64,
pub inject_timeouts: bool,
}Expand description
Statistics for chaos engineering engine
Fields§
§enabled: boolWhether chaos engineering is enabled
error_rate: f64Error injection rate (0.0 to 1.0)
delay_rate: f64Delay injection rate (0.0 to 1.0)
min_delay_ms: u64Minimum delay in milliseconds
max_delay_ms: u64Maximum delay in milliseconds
inject_timeouts: boolWhether to inject timeouts
Trait Implementations§
Source§impl Clone for ChaosStatistics
impl Clone for ChaosStatistics
Source§fn clone(&self) -> ChaosStatistics
fn clone(&self) -> ChaosStatistics
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 ChaosStatistics
impl Debug for ChaosStatistics
Source§impl<'de> Deserialize<'de> for ChaosStatistics
impl<'de> Deserialize<'de> for ChaosStatistics
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
Auto Trait Implementations§
impl Freeze for ChaosStatistics
impl RefUnwindSafe for ChaosStatistics
impl Send for ChaosStatistics
impl Sync for ChaosStatistics
impl Unpin for ChaosStatistics
impl UnwindSafe for ChaosStatistics
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