#[non_exhaustive]pub struct EndpointStats {
pub accepted_handshakes: u64,
pub outgoing_handshakes: u64,
pub refused_handshakes: u64,
pub ignored_handshakes: u64,
}展开描述
关于 Endpoint 活动的统计信息
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
非穷尽结构体将来可能添加额外的字段。因此,外部 crate 不能使用传统的
Struct { .. } 语法构造非穷尽结构体;进行模式匹配时必须包含通配 ..;结构体更新语法也无法使用。accepted_handshakes: u64此 Endpoint 已接受的 QUIC 握手累计次数
outgoing_handshakes: u64从此 Endpoint 发起的 QUIC 握手累计次数
refused_handshakes: u64此 Endpoint 已拒绝的 QUIC 握手累计次数
ignored_handshakes: u64此 Endpoint 已忽略的 QUIC 握手累计次数
trait 实现§
源代码§impl Clone for EndpointStats
impl Clone for EndpointStats
源代码§fn clone(&self) -> EndpointStats
fn clone(&self) -> EndpointStats
返回值的副本。 更多信息
1.0.0 · 源代码§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. 更多信息源代码§impl Debug for EndpointStats
impl Debug for EndpointStats
源代码§impl Default for EndpointStats
impl Default for EndpointStats
源代码§fn default() -> EndpointStats
fn default() -> EndpointStats
Returns the “default value” for a type. 更多信息
impl Copy for EndpointStats
自动 trait 实现§
impl Freeze for EndpointStats
impl RefUnwindSafe for EndpointStats
impl Send for EndpointStats
impl Sync for EndpointStats
impl Unpin for EndpointStats
impl UnsafeUnpin for EndpointStats
impl UnwindSafe for EndpointStats
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. 更多信息