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

Implementors use Config to define custion configuration parameters.

Required Methods

Provided Methods

Implementors