pub struct Stats {}Expand description
what a connection counted
Fields§
§sent: u64DATA packets sent (keep-alives included)
received: u64DATA packets taken in (duplicates and stale ones not counted)
delivered: u64sent packets an ack named
lost: u64sent packets the acks passed by
duplicates: u64packets that came a second time
stale: u64packets older than the window
dropped: u64packets dropped for the rate limits or their size
forged: u64sealed packets with this connection’s token whose tag did not check (forged or damaged; nothing else was done with them)
bytes_sent: u64bytes of DATA packets sent (headers included)
bytes_received: u64bytes of DATA packets taken in (headers included)
resent: u64chunks of the reliable channel sent again (UDP: lost, or no ack within the timeout)
reliable_queued: u64bytes of reliable messages the peer does not have yet
rtt_ms: f32the smoothed round-trip time (0 before the first sample)
rtt_var_ms: f32its variation
Trait Implementations§
impl Copy for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Forget for Stats
impl Freeze for Stats
impl Move for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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