pub struct SendStats {Show 22 fields
pub accepted_packets: u64,
pub accepted_bytes: u64,
pub sent_packets: u64,
pub sent_bytes: u64,
pub retransmitted_packets: u64,
pub retransmitted_bytes: u64,
pub acknowledged_packets: u64,
pub acknowledged_bytes: u64,
pub rejected_packets: u64,
pub abandoned_packets: u64,
pub abandoned_bytes: u64,
pub buffered_packets: usize,
pub buffered_bytes: usize,
pub peak_buffered_packets: usize,
pub peak_buffered_bytes: usize,
pub nak_packets: u64,
pub invalid_controls: u64,
pub timeout_retransmissions: u64,
pub rtt_us: u64,
pub encrypted_packets: u64,
pub km_requests: u64,
pub km_responses: u64,
}Expand description
Counters for the sender. Byte counts are payload bytes, without the SRT header, unless noted.
Fields§
§accepted_packets: u64Messages accepted into the send queue.
accepted_bytes: u64Payload bytes in accepted messages.
sent_packets: u64Data packets put on the wire, originals and retransmissions.
sent_bytes: u64Payload bytes in those packets.
retransmitted_packets: u64Of those, retransmissions.
retransmitted_bytes: u64Payload bytes in retransmissions.
acknowledged_packets: u64Transport acknowledgements, not proof of playback or application receipt.
acknowledged_bytes: u64Payload bytes acknowledged.
rejected_packets: u64Messages refused with a SendError.
abandoned_packets: u64Packets still queued or unacknowledged when the session closed.
abandoned_bytes: u64Payload bytes in those packets.
buffered_packets: usizePackets queued or awaiting acknowledgement now.
buffered_bytes: usizeAllocation capacity held by those payloads, in bytes; what
SendConfig::max_bytes limits.
peak_buffered_packets: usizeHighest buffered_packets reached.
peak_buffered_bytes: usizeHighest buffered_bytes reached.
nak_packets: u64Valid NAK packets received.
invalid_controls: u64Control packets ignored as invalid or unsupported.
timeout_retransmissions: u64Packets queued for retransmission by the retransmission timeout rather than by a NAK.
rtt_us: u64Smoothed round-trip time, in microseconds.
encrypted_packets: u64New data packets encrypted; retransmissions reuse the ciphertext and are not counted.
km_requests: u64Key material requests sent, repeats included.
km_responses: u64Key material responses that matched the outstanding request.