pub struct ChaosConfig {
pub enabled: bool,
pub active_rules: Vec<ChaosRule>,
pub failure_injection: Option<FailureInjectionConfig>,
pub tags: Vec<String>,
}Expand description
Chaos configuration structure Chaos configuration for debug context
Fields§
§enabled: boolWhether chaos engineering is enabled
active_rules: Vec<ChaosRule>Active chaos rules
failure_injection: Option<FailureInjectionConfig>Failure injection configuration
Chaos tags
Trait Implementations§
Source§impl Clone for ChaosConfig
impl Clone for ChaosConfig
Source§fn clone(&self) -> ChaosConfig
fn clone(&self) -> ChaosConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChaosConfig
impl RefUnwindSafe for ChaosConfig
impl Send for ChaosConfig
impl Sync for ChaosConfig
impl Unpin for ChaosConfig
impl UnsafeUnpin for ChaosConfig
impl UnwindSafe for ChaosConfig
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