pub struct NetworkTestConfig {
pub node_count: usize,
pub messages_per_node: usize,
pub recv_timeout_ms: u64,
pub send_delay_ms: u64,
pub loss_rate: f32,
pub jitter_ms: u64,
pub rng_seed: u64,
pub nat_relay: bool,
}Expand description
Configuration for network tests
Fields§
§node_count: usizeNumber of nodes
messages_per_node: usizeMessages per node
recv_timeout_ms: u64Receive timeout in ms
send_delay_ms: u64Delay between sends in ms
loss_rate: f32§jitter_ms: u64§rng_seed: u64§nat_relay: boolTrait Implementations§
Source§impl Clone for NetworkTestConfig
impl Clone for NetworkTestConfig
Source§fn clone(&self) -> NetworkTestConfig
fn clone(&self) -> NetworkTestConfig
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 NetworkTestConfig
impl Debug for NetworkTestConfig
Auto Trait Implementations§
impl Freeze for NetworkTestConfig
impl RefUnwindSafe for NetworkTestConfig
impl Send for NetworkTestConfig
impl Sync for NetworkTestConfig
impl Unpin for NetworkTestConfig
impl UnsafeUnpin for NetworkTestConfig
impl UnwindSafe for NetworkTestConfig
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