Struct NewRenoConfig
pub struct NewRenoConfig { /* private fields */ }Available on crate feature
quic only.Expand description
Configuration for the NewReno congestion controller
Implementations§
§impl NewRenoConfig
impl NewRenoConfig
pub fn initial_window(&mut self, value: u64) -> &mut NewRenoConfig
pub fn initial_window(&mut self, value: u64) -> &mut NewRenoConfig
Default limit on the amount of outstanding data in bytes.
Recommended value: min(10 * max_datagram_size, max(2 * max_datagram_size, 14720))
pub fn loss_reduction_factor(&mut self, value: f32) -> &mut NewRenoConfig
pub fn loss_reduction_factor(&mut self, value: f32) -> &mut NewRenoConfig
Reduction in congestion window when a new loss event is detected.
Trait Implementations§
§impl Clone for NewRenoConfig
impl Clone for NewRenoConfig
§fn clone(&self) -> NewRenoConfig
fn clone(&self) -> NewRenoConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl ControllerFactory for NewRenoConfig
impl ControllerFactory for NewRenoConfig
§fn build(
self: Arc<NewRenoConfig>,
now: Instant,
current_mtu: u16,
) -> Box<dyn Controller>
fn build( self: Arc<NewRenoConfig>, now: Instant, current_mtu: u16, ) -> Box<dyn Controller>
Construct a fresh
Controller§impl Debug for NewRenoConfig
impl Debug for NewRenoConfig
§impl Default for NewRenoConfig
impl Default for NewRenoConfig
§fn default() -> NewRenoConfig
fn default() -> NewRenoConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NewRenoConfig
impl RefUnwindSafe for NewRenoConfig
impl Send for NewRenoConfig
impl Sync for NewRenoConfig
impl Unpin for NewRenoConfig
impl UnwindSafe for NewRenoConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more