#[non_exhaustive]pub struct ControllerMetrics {
pub congestion_window: u64,
pub ssthresh: Option<u64>,
pub pacing_rate: Option<u64>,
}展开描述
拥塞控制器的通用指标
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
非穷尽结构体将来可能添加额外的字段。因此,外部 crate 不能使用传统的
Struct { .. } 语法构造非穷尽结构体;进行模式匹配时必须包含通配 ..;结构体更新语法也无法使用。congestion_window: u64拥塞窗口(字节)
ssthresh: Option<u64>慢启动阈值(字节)
pacing_rate: Option<u64>节奏发送速率(比特/秒)
trait 实现§
源代码§impl Default for ControllerMetrics
impl Default for ControllerMetrics
源代码§fn default() -> ControllerMetrics
fn default() -> ControllerMetrics
Returns the “default value” for a type. 更多信息
自动 trait 实现§
impl Freeze for ControllerMetrics
impl RefUnwindSafe for ControllerMetrics
impl Send for ControllerMetrics
impl Sync for ControllerMetrics
impl Unpin for ControllerMetrics
impl UnsafeUnpin for ControllerMetrics
impl UnwindSafe for ControllerMetrics
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息