Trait GenericCongAvoidFlow

Source
pub trait GenericCongAvoidFlow {
    // Required methods
    fn curr_cwnd(&self) -> u32;
    fn set_cwnd(&mut self, cwnd: u32);
    fn increase(&mut self, m: &GenericCongAvoidMeasurements);
    fn reduction(&mut self, m: &GenericCongAvoidMeasurements);

    // Provided method
    fn reset(&mut self) { ... }
}
Expand description

An individual generic-cong-avoid flow

Required Methods§

Source

fn curr_cwnd(&self) -> u32

Return the current cwnd.

Source

fn set_cwnd(&mut self, cwnd: u32)

If the cwnd has been overridden, this method will be called to tell the implementation about it.

Source

fn increase(&mut self, m: &GenericCongAvoidMeasurements)

An congestion increase event occurred: bytes were acked without an indication of loss.

Source

fn reduction(&mut self, m: &GenericCongAvoidMeasurements)

An congestion reduction event occurred: an indication of loss was present.

Provided Methods§

Source

fn reset(&mut self)

A timeout occurred. The implementation should reset its state.

Implementors§