pub trait ControllerFactory {
    // Required method
    fn build(&self, now: Instant, current_mtu: u16) -> Box<dyn Controller>;
}
Expand description

Constructs controllers on demand

Required Methods§

source

fn build(&self, now: Instant, current_mtu: u16) -> Box<dyn Controller>

Construct a fresh Controller

Implementations on Foreign Types§

source§

impl ControllerFactory for Arc<BbrConfig>

source§

fn build(&self, _now: Instant, current_mtu: u16) -> Box<dyn Controller>

source§

impl ControllerFactory for Arc<CubicConfig>

source§

fn build(&self, now: Instant, current_mtu: u16) -> Box<dyn Controller>

source§

impl ControllerFactory for Arc<NewRenoConfig>

source§

fn build(&self, now: Instant, current_mtu: u16) -> Box<dyn Controller>

Implementors§