#[non_exhaustive]pub struct ControllerMetrics {
pub congestion_window: u64,
pub ssthresh: Option<u64>,
pub pacing_rate: Option<u64>,
}
Expand description
Common congestion controller metrics
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.congestion_window: u64
Congestion window (bytes)
ssthresh: Option<u64>
Slow start threshold (bytes)
pacing_rate: Option<u64>
Pacing rate (bits/s)
Trait Implementations§
Source§impl Default for ControllerMetrics
impl Default for ControllerMetrics
Source§fn default() -> ControllerMetrics
fn default() -> ControllerMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ControllerMetrics
impl RefUnwindSafe for ControllerMetrics
impl Send for ControllerMetrics
impl Sync for ControllerMetrics
impl Unpin for ControllerMetrics
impl UnwindSafe for ControllerMetrics
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