pub struct QosBenchConfig {
pub target_url: String,
pub method: String,
pub classes: Vec<(TrafficClass, u32)>,
pub concurrency: u32,
pub duration: Duration,
pub mss: Option<u32>,
}Expand description
Configuration for a QoS traffic-class bench run.
Fields§
§target_url: StringTarget URL (http://host:port/path). HTTPS is not supported by this
native generator (the point is raw socket control, not TLS); use a
plain-HTTP endpoint or terminate TLS in front.
method: StringHTTP method (GET/HEAD/POST/…). GET by default; body is empty.
classes: Vec<(TrafficClass, u32)>Traffic classes to mix, each with a relative weight.
concurrency: u32Concurrent workers.
duration: DurationTotal run duration.
mss: Option<u32>Optional TCP_MAXSEG clamp (bytes) applied to every connection.
Trait Implementations§
Source§impl Clone for QosBenchConfig
impl Clone for QosBenchConfig
Source§fn clone(&self) -> QosBenchConfig
fn clone(&self) -> QosBenchConfig
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 moreAuto Trait Implementations§
impl Freeze for QosBenchConfig
impl RefUnwindSafe for QosBenchConfig
impl Send for QosBenchConfig
impl Sync for QosBenchConfig
impl Unpin for QosBenchConfig
impl UnsafeUnpin for QosBenchConfig
impl UnwindSafe for QosBenchConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more