#[non_exhaustive]pub struct SocketStats {
pub rx_dropped: u64,
pub deliver_dropped: u64,
pub late_dropped: u64,
pub rx_oversize: u64,
}Available on crate feature
tokio only.Expand description
A snapshot of one connection’s Counters, returned by
SrtSocket::stats.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rx_dropped: u64Inbound datagrams dropped because the per-connection ingress channel was full (the peer sent faster than this connection’s driver task could drain).
deliver_dropped: u64TSBPD-released payloads dropped because the application wasn’t
calling SrtSocket::recv fast enough to keep the delivery channel
from filling.
late_dropped: u64DATA packets ignored because they were not ahead of the delivery cursor: duplicates, retransmissions of what was already delivered or given up on, and stale sequence numbers (never staged).
rx_oversize: u64Datagrams larger than IoConfig::max_datagram, dropped rather than
truncated.
Trait Implementations§
Source§impl Clone for SocketStats
impl Clone for SocketStats
impl Copy for SocketStats
Source§impl Debug for SocketStats
impl Debug for SocketStats
Source§impl Default for SocketStats
impl Default for SocketStats
impl Eq for SocketStats
Source§impl PartialEq for SocketStats
impl PartialEq for SocketStats
impl StructuralPartialEq for SocketStats
Auto Trait Implementations§
impl Freeze for SocketStats
impl RefUnwindSafe for SocketStats
impl Send for SocketStats
impl Sync for SocketStats
impl Unpin for SocketStats
impl UnsafeUnpin for SocketStats
impl UnwindSafe for SocketStats
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