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§
Sourcefn set_cwnd(&mut self, cwnd: u32)
fn set_cwnd(&mut self, cwnd: u32)
If the cwnd has been overridden, this method will be called to tell the implementation about it.
Sourcefn increase(&mut self, m: &GenericCongAvoidMeasurements)
fn increase(&mut self, m: &GenericCongAvoidMeasurements)
An congestion increase event occurred: bytes were acked without an indication of loss.
Sourcefn reduction(&mut self, m: &GenericCongAvoidMeasurements)
fn reduction(&mut self, m: &GenericCongAvoidMeasurements)
An congestion reduction event occurred: an indication of loss was present.