Struct generic_cong_avoid::Alg

source ·
pub struct Alg<A: GenericCongAvoidAlg> {
    pub deficit_timeout: u32,
    pub init_cwnd: u32,
    pub report_option: GenericCongAvoidConfigReport,
    pub ss: GenericCongAvoidConfigSS,
    pub ss_thresh: u32,
    pub use_compensation: bool,
    pub alg: A,
}
Expand description

The generic-cong-avoid type which implements portus::CongAlg.

Fields

deficit_timeout: u32init_cwnd: u32report_option: GenericCongAvoidConfigReportss: GenericCongAvoidConfigSSss_thresh: u32use_compensation: boolalg: A

Trait Implementations

A type which implements the portus::Flow trait, to manage an individual connection. Read more
A unique name for the algorithm.
datapath_programs returns all datapath programs the congestion control algorithm will to use during its execution. It is called once, when Portus initializes (portus::run or portus::spawn). Read more
Create a new instance of the CongAlg to manage a new flow. Optionally copy any configuration parameters from &self. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more