pub struct StreamingStats {
pub buffers_received: u64,
pub buffers_processed: u64,
pub buffers_dropped: u64,
pub buffers_discarded_on_restart: u64,
}Expand description
Counters collected during a receive stream.
These counters describe USB completions observed by the host. RTL-SDR bulk data has no sequence number, so the driver cannot detect samples lost in the device before a USB transfer completes (for example, when the application stops polling long enough to exhaust the host transfer queue).
Fields§
§buffers_received: u64Number of USB completions consumed by the driver.
buffers_processed: u64Number of buffers successfully processed by the streaming layer.
buffers_dropped: u64Number of observed completions not delivered because of an error or controlled restart.
This does not include device-side loss that happened before USB completion.
buffers_discarded_on_restart: u64Number of dropped buffers that belonged to the queue retained across a restart.
This is a subset of StreamingStats::buffers_dropped. On backends without
transfer cancellation, including WebUSB, consuming these old submissions may
delay the first fresh block after restarting.