pub struct FaultConfig {
pub max_delay_rounds: u8,
pub drop_rate_percent: u8,
pub duplicate_rate_percent: u8,
pub reorder_rate_percent: u8,
pub partition_rate_percent: u8,
pub freeze_rate_percent: u8,
pub freeze_duration_rounds: u8,
}Expand description
Fault injection configuration for simulated network delivery.
Fields§
§max_delay_rounds: u8Maximum delivery delay in rounds.
drop_rate_percent: u8Percentage of sends dropped.
duplicate_rate_percent: u8Percentage of sends duplicated.
reorder_rate_percent: u8Percentage chance of reordering ready messages at each tick.
partition_rate_percent: u8Percentage chance per round to toggle a random network partition.
freeze_rate_percent: u8Percentage chance per round to freeze a random clock.
freeze_duration_rounds: u8Number of rounds to keep a frozen clock frozen.
Trait Implementations§
Source§impl Clone for FaultConfig
impl Clone for FaultConfig
Source§fn clone(&self) -> FaultConfig
fn clone(&self) -> FaultConfig
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 FaultConfig
impl Debug for FaultConfig
Source§impl Default for FaultConfig
impl Default for FaultConfig
Source§impl<'de> Deserialize<'de> for FaultConfig
impl<'de> Deserialize<'de> for FaultConfig
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 FaultConfig
impl PartialEq for FaultConfig
Source§impl Serialize for FaultConfig
impl Serialize for FaultConfig
impl Copy for FaultConfig
impl Eq for FaultConfig
impl StructuralPartialEq for FaultConfig
Auto Trait Implementations§
impl Freeze for FaultConfig
impl RefUnwindSafe for FaultConfig
impl Send for FaultConfig
impl Sync for FaultConfig
impl Unpin for FaultConfig
impl UnsafeUnpin for FaultConfig
impl UnwindSafe for FaultConfig
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