pub struct SimulationConfig {
pub seed: u64,
pub agent_count: usize,
pub rounds: u64,
pub fanout: usize,
pub fault: FaultConfig,
pub clock: ClockConfig,
pub reconciliation_rounds: u8,
}Expand description
Top-level simulation configuration.
Fields§
§seed: u64RNG seed controlling all nondeterminism.
agent_count: usizeNumber of simulated agents.
rounds: u64Number of simulation rounds before final drain.
fanout: usizeNumber of peers each emitter sends each event to.
fault: FaultConfigFault injection configuration.
clock: ClockConfigClock modeling configuration.
reconciliation_rounds: u8Number of pairwise gossip reconciliation rounds after drain.
Trait Implementations§
Source§impl Clone for SimulationConfig
impl Clone for SimulationConfig
Source§fn clone(&self) -> SimulationConfig
fn clone(&self) -> SimulationConfig
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 SimulationConfig
impl Debug for SimulationConfig
Source§impl Default for SimulationConfig
impl Default for SimulationConfig
Source§impl<'de> Deserialize<'de> for SimulationConfig
impl<'de> Deserialize<'de> for SimulationConfig
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 SimulationConfig
impl PartialEq for SimulationConfig
Source§impl Serialize for SimulationConfig
impl Serialize for SimulationConfig
impl Eq for SimulationConfig
impl StructuralPartialEq for SimulationConfig
Auto Trait Implementations§
impl Freeze for SimulationConfig
impl RefUnwindSafe for SimulationConfig
impl Send for SimulationConfig
impl Sync for SimulationConfig
impl Unpin for SimulationConfig
impl UnsafeUnpin for SimulationConfig
impl UnwindSafe for SimulationConfig
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