pub struct CongestionConfig {
pub initial_window: usize,
pub max_window: usize,
pub min_rtt_ms: f64,
}Expand description
Congestion control configuration.
Fields§
§initial_window: usizeInitial window size
max_window: usizeMaximum window size
min_rtt_ms: f64Minimum RTT (ms)
Trait Implementations§
Source§impl Clone for CongestionConfig
impl Clone for CongestionConfig
Source§fn clone(&self) -> CongestionConfig
fn clone(&self) -> CongestionConfig
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 moreSource§impl Debug for CongestionConfig
impl Debug for CongestionConfig
Source§impl Default for CongestionConfig
impl Default for CongestionConfig
Source§impl<'de> Deserialize<'de> for CongestionConfig
impl<'de> Deserialize<'de> for CongestionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CongestionConfig
impl RefUnwindSafe for CongestionConfig
impl Send for CongestionConfig
impl Sync for CongestionConfig
impl Unpin for CongestionConfig
impl UnsafeUnpin for CongestionConfig
impl UnwindSafe for CongestionConfig
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