#[non_exhaustive]pub struct ConnectionStats {
pub udp_tx: UdpStats,
pub udp_rx: UdpStats,
pub frame_tx: FrameStats,
pub frame_rx: FrameStats,
pub path: PathStats,
}展开描述
连接统计信息
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
非穷尽结构体将来可能添加额外的字段。因此,外部 crate 不能使用传统的
Struct { .. } 语法构造非穷尽结构体;进行模式匹配时必须包含通配 ..;结构体更新语法也无法使用。udp_tx: UdpStats关于该连接上发送的 UDP 数据报的统计信息
udp_rx: UdpStats关于该连接上接收的 UDP 数据报的统计信息
frame_tx: FrameStats关于该连接上发送的帧的统计信息
frame_rx: FrameStats关于该连接上接收的帧的统计信息
path: PathStats与当前传输路径相关的统计信息
trait 实现§
源代码§impl Clone for ConnectionStats
impl Clone for ConnectionStats
源代码§fn clone(&self) -> ConnectionStats
fn clone(&self) -> ConnectionStats
返回值的副本。 更多信息
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 ConnectionStats
impl Debug for ConnectionStats
源代码§impl Default for ConnectionStats
impl Default for ConnectionStats
源代码§fn default() -> ConnectionStats
fn default() -> ConnectionStats
Returns the “default value” for a type. 更多信息
impl Copy for ConnectionStats
自动 trait 实现§
impl Freeze for ConnectionStats
impl RefUnwindSafe for ConnectionStats
impl Send for ConnectionStats
impl Sync for ConnectionStats
impl Unpin for ConnectionStats
impl UnsafeUnpin for ConnectionStats
impl UnwindSafe for ConnectionStats
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. 更多信息