pub trait GenericCongAvoidFlow {
fn curr_cwnd(&self) -> u32;
fn set_cwnd(&mut self, cwnd: u32);
fn increase(&mut self, m: &GenericCongAvoidMeasurements);
fn reduction(&mut self, m: &GenericCongAvoidMeasurements);
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.