pub struct ChaosStage {
pub duration_millis: u64,
pub profiles: HashMap<String, HttpChaosProfile>,
}Expand description
A single stage of a chaos experiment. Maps to a ChaosExperiment.stages[]
entry.
Fields§
§duration_millis: u64How long this stage runs before advancing (max 86_400_000 = 24h).
profiles: HashMap<String, HttpChaosProfile>Map of host -> chaos profile to apply during this stage.
Implementations§
Trait Implementations§
Source§impl Clone for ChaosStage
impl Clone for ChaosStage
Source§fn clone(&self) -> ChaosStage
fn clone(&self) -> ChaosStage
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 ChaosStage
impl Debug for ChaosStage
Source§impl Default for ChaosStage
impl Default for ChaosStage
Source§fn default() -> ChaosStage
fn default() -> ChaosStage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChaosStage
impl<'de> Deserialize<'de> for ChaosStage
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
Source§impl PartialEq for ChaosStage
impl PartialEq for ChaosStage
Source§fn eq(&self, other: &ChaosStage) -> bool
fn eq(&self, other: &ChaosStage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChaosStage
impl Serialize for ChaosStage
impl StructuralPartialEq for ChaosStage
Auto Trait Implementations§
impl Freeze for ChaosStage
impl RefUnwindSafe for ChaosStage
impl Send for ChaosStage
impl Sync for ChaosStage
impl Unpin for ChaosStage
impl UnsafeUnpin for ChaosStage
impl UnwindSafe for ChaosStage
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