pub struct NetBenchProbeConfig {
pub overall_timeout: Duration,
pub path_stabilization_timeout: Duration,
pub latency_duration: Duration,
pub latency_interval: Duration,
pub loss_duration: Duration,
pub loss_rate_per_second: u32,
pub probe_timeout: Duration,
}Expand description
Parameters for a low-bandwidth latency and loss probe run.
Probe runs never open throughput streams and remain available when the peer denies bandwidth-saturating measurements.
Fields§
§overall_timeout: DurationHard wall-clock limit for the complete low-bandwidth probe run.
path_stabilization_timeout: DurationMaximum time to wait for a direct path before measurements begin.
latency_duration: DurationIdle RTT measurement duration, at least one millisecond.
latency_interval: DurationDelay between idle RTT probes, at least one millisecond.
loss_duration: DurationDatagram timeout measurement duration, at least one millisecond.
loss_rate_per_second: u32Number of Datagram probes sent per second, within 1..=1000.
probe_timeout: DurationTime after the last probe before outstanding probes time out.
Implementations§
Trait Implementations§
Source§impl Clone for NetBenchProbeConfig
impl Clone for NetBenchProbeConfig
Source§fn clone(&self) -> NetBenchProbeConfig
fn clone(&self) -> NetBenchProbeConfig
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 NetBenchProbeConfig
impl Debug for NetBenchProbeConfig
Source§impl Default for NetBenchProbeConfig
impl Default for NetBenchProbeConfig
impl Eq for NetBenchProbeConfig
Source§impl From<&NetBenchConfig> for NetBenchProbeConfig
impl From<&NetBenchConfig> for NetBenchProbeConfig
Source§fn from(config: &NetBenchConfig) -> Self
fn from(config: &NetBenchConfig) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NetBenchProbeConfig
impl PartialEq for NetBenchProbeConfig
impl StructuralPartialEq for NetBenchProbeConfig
Auto Trait Implementations§
impl Freeze for NetBenchProbeConfig
impl RefUnwindSafe for NetBenchProbeConfig
impl Send for NetBenchProbeConfig
impl Sync for NetBenchProbeConfig
impl Unpin for NetBenchProbeConfig
impl UnsafeUnpin for NetBenchProbeConfig
impl UnwindSafe for NetBenchProbeConfig
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