pub struct ChaosContext {
pub enabled: bool,
pub active_rules: Vec<ChaosRule>,
pub failure_injection: Option<FailureInjectionConfig>,
pub tags: Vec<String>,
}Expand description
Chaos subsystem context
Fields§
§enabled: boolWhether chaos is enabled
active_rules: Vec<ChaosRule>Active chaos rules
failure_injection: Option<FailureInjectionConfig>Failure injection configuration
Chaos tags/patterns
Trait Implementations§
Source§impl Clone for ChaosContext
impl Clone for ChaosContext
Source§fn clone(&self) -> ChaosContext
fn clone(&self) -> ChaosContext
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 moreSource§impl Debug for ChaosContext
impl Debug for ChaosContext
Source§impl Default for ChaosContext
impl Default for ChaosContext
Source§fn default() -> ChaosContext
fn default() -> ChaosContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChaosContext
impl<'de> Deserialize<'de> for ChaosContext
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 ChaosContext
impl RefUnwindSafe for ChaosContext
impl Send for ChaosContext
impl Sync for ChaosContext
impl Unpin for ChaosContext
impl UnsafeUnpin for ChaosContext
impl UnwindSafe for ChaosContext
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