#[repr(C)]pub struct moq_connection_stats {Show 18 fields
pub rtt_us: u64,
pub rtt_valid: bool,
pub send_rate_bps: u64,
pub send_rate_valid: bool,
pub recv_rate_bps: u64,
pub recv_rate_valid: bool,
pub bytes_sent: u64,
pub bytes_sent_valid: bool,
pub bytes_received: u64,
pub bytes_received_valid: bool,
pub bytes_lost: u64,
pub bytes_lost_valid: bool,
pub packets_sent: u64,
pub packets_sent_valid: bool,
pub packets_received: u64,
pub packets_received_valid: bool,
pub packets_lost: u64,
pub packets_lost_valid: bool,
}Expand description
A snapshot of connection statistics, filled in by moq_session_stats.
Each metric has a *_valid flag: when false, the matching value is meaningless because
the transport backend doesn’t report it (a false flag is NOT the same as a zero value).
Native QUIC reports every metric; the browser WebTransport reports few or none. Initialize
the struct to zero before the call; moq_session_stats overwrites every field.
Fields§
§rtt_us: u64Smoothed round-trip time, in microseconds.
rtt_valid: bool§send_rate_bps: u64Estimated send bandwidth from the congestion controller, in bits per second.
send_rate_valid: bool§recv_rate_bps: u64Estimated receive bandwidth from MoQ PROBE, in bits per second.
recv_rate_valid: bool§bytes_sent: u64Total bytes sent, including retransmissions and overhead.
bytes_sent_valid: bool§bytes_received: u64Total bytes received, including duplicates and overhead.
bytes_received_valid: bool§bytes_lost: u64Total bytes lost (detected via retransmission or acknowledgement).
bytes_lost_valid: bool§packets_sent: u64Total datagrams sent.
packets_sent_valid: bool§packets_received: u64Total datagrams received.
packets_received_valid: bool§packets_lost: u64Total datagrams detected as lost.
packets_lost_valid: bool