Trait portus::CongAlg [−][src]
pub trait CongAlg<T: Ipc> { type Config: Clone; fn name() -> String; fn create(
control: Datapath<T>,
cfg: Config<T, Self>,
info: DatapathInfo
) -> Self; fn on_report(&mut self, sock_id: u32, m: Report); fn close(&mut self) { ... } }
Implement this trait to define a CCP congestion control algorithm.
Associated Types
Required Methods
fn name() -> String
fn create(
control: Datapath<T>,
cfg: Config<T, Self>,
info: DatapathInfo
) -> Self
control: Datapath<T>,
cfg: Config<T, Self>,
info: DatapathInfo
) -> Self