Skip to main content

NetBenchConfig

Struct NetBenchConfig 

Source
pub struct NetBenchConfig {
Show 13 fields 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, pub download_warmup: Duration, pub download_duration: Duration, pub upload_warmup: Duration, pub upload_duration: Duration, pub parallel_streams: u16, pub chunk_size: u32,
}
Expand description

Parameters for one complete benchmark run.

Fields§

§overall_timeout: Duration

Hard wall-clock limit for the complete benchmark flow, including negotiation and cleanup.

§path_stabilization_timeout: Duration

Maximum time to wait for a direct path before measurements begin.

§latency_duration: Duration

Idle RTT measurement duration, at least one millisecond.

§latency_interval: Duration

Delay between idle RTT probes, at least one millisecond.

§loss_duration: Duration

Datagram timeout measurement duration, at least one millisecond.

§loss_rate_per_second: u32

Number of Datagram probes sent per second, within 1..=1000.

§probe_timeout: Duration

Time after the last probe before outstanding probes time out.

§download_warmup: Duration

Warm-up before download accounting starts.

§download_duration: Duration

Accounted download duration, at least one millisecond.

§upload_warmup: Duration

Warm-up before upload accounting starts.

§upload_duration: Duration

Accounted upload duration, at least one millisecond.

§parallel_streams: u16

Non-zero parallel unidirectional stream count per throughput direction.

§chunk_size: u32

Non-zero payload size written at a time.

Implementations§

Source§

impl NetBenchConfig

Source

pub fn quick() -> Self

A roughly 15-second interactive preset.

Source

pub fn standard() -> Self

A roughly 32-second default preset.

Trait Implementations§

Source§

impl Clone for NetBenchConfig

Source§

fn clone(&self) -> NetBenchConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NetBenchConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NetBenchConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for NetBenchConfig

Source§

impl From<&NetBenchConfig> for NetBenchProbeConfig

Source§

fn from(config: &NetBenchConfig) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for NetBenchConfig

Source§

fn eq(&self, other: &NetBenchConfig) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for NetBenchConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more