pub struct StreamStats {
pub packets: u64,
pub bytes: u64,
pub duplicates: u64,
pub nacks_sent: u64,
pub seqs_requested: u64,
pub acks_sent: u64,
pub heartbeats: u64,
pub retransmitted: u64,
}Expand description
接收统计,见 Stream::stats。
Fields§
§packets: u64交付给应用程序的包数。
bytes: u64交付的数据报字节数。
duplicates: u64丢弃的重复包数(重传与原包都到达,或网络重复)。
nacks_sent: u64发出的 NACK 数据报数。
seqs_requested: u64用 NACK 请求过的包序号数。
acks_sent: u64发出的 ACK 数。
heartbeats: u64收到的心跳数。
retransmitted: u64交付的包中重传副本的个数。
Trait Implementations§
Source§impl Clone for StreamStats
impl Clone for StreamStats
Source§fn clone(&self) -> StreamStats
fn clone(&self) -> StreamStats
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 StreamStats
impl Debug for StreamStats
Source§impl Default for StreamStats
impl Default for StreamStats
Source§fn default() -> StreamStats
fn default() -> StreamStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for StreamStats
impl PartialEq for StreamStats
impl Copy for StreamStats
impl Eq for StreamStats
impl StructuralPartialEq for StreamStats
Auto Trait Implementations§
impl Freeze for StreamStats
impl RefUnwindSafe for StreamStats
impl Send for StreamStats
impl Sync for StreamStats
impl Unpin for StreamStats
impl UnwindSafe for StreamStats
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