#[non_exhaustive]pub struct SocketStats {
pub rx_dropped: u64,
pub deliver_dropped: u64,
pub damage_coalesced: u64,
pub late_dropped: u64,
pub too_late_dropped: u64,
pub rx_oversize: u64,
}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
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.
damage_coalesced: u64Damage reports that found the delivery channel full while another was already held for the application: their count is this, the first is delivered, none is silent.
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).
too_late_dropped: u64Sequence numbers the TSBPD scheduler gave up on: packets that arrived after their play time by more than the too-late threshold, and gaps skipped as unrecoverable when the next buffered packet reached its play time (§4.6, too-late packet drop). Each one is a delivered stream’s payload that no retransmission can recover.
rx_oversize: u64Datagrams larger than IoConfig::max_datagram, dropped rather than
truncated.