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 logger: Option<Logger>,
    pub alg: A,
}

Fields

deficit_timeout: u32init_cwnd: u32report_option: GenericCongAvoidConfigReportss: GenericCongAvoidConfigSSss_thresh: u32use_compensation: boollogger: Option<Logger>alg: 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.

Calls U::from(self).

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

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.