Struct generic_cong_avoid::Alg
source · pub struct Alg<A: GenericCongAvoidAlg> {
pub deficit_timeout: u32,
pub init_cwnd: u32,
pub report_option: GenericCongAvoidConfigReport,
pub ss: GenericCongAvoidConfigSS,
pub ss_thresh: u32,
pub use_compensation: bool,
pub logger: Option<Logger>,
pub alg: A,
}
Fields
deficit_timeout: u32
init_cwnd: u32
report_option: GenericCongAvoidConfigReport
ss: GenericCongAvoidConfigSS
ss_thresh: u32
use_compensation: bool
logger: Option<Logger>
alg: A
Trait Implementations
sourceimpl<T: Ipc, A: GenericCongAvoidAlg> CongAlg<T> for Alg<A>
impl<T: Ipc, A: GenericCongAvoidAlg> CongAlg<T> for Alg<A>
type Flow = Flow<T, <A as GenericCongAvoidAlg>::Flow>
type Flow = Flow<T, <A as GenericCongAvoidAlg>::Flow>
A type which implements the
portus::Flow
trait, to manage
an individual connection. Read moresourcefn datapath_programs(&self) -> HashMap<&'static str, String>
fn datapath_programs(&self) -> HashMap<&'static str, String>
datapath_programs
returns all datapath programs the congestion control algorithm
will to use during its execution. It is called once, when Portus initializes
(portus::run
or portus::spawn
). Read moreAuto Trait Implementations
impl<A> RefUnwindSafe for Alg<A>where
A: RefUnwindSafe,
impl<A> Send for Alg<A>where
A: Send,
impl<A> Sync for Alg<A>where
A: Sync,
impl<A> Unpin for Alg<A>where
A: Unpin,
impl<A> UnwindSafe for Alg<A>where
A: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more