pub struct Stats {Show 23 fields
pub recv: usize,
pub sent: usize,
pub lost: usize,
pub spurious_lost: usize,
pub retrans: usize,
pub sent_bytes: u64,
pub recv_bytes: u64,
pub acked_bytes: u64,
pub lost_bytes: u64,
pub stream_retrans_bytes: u64,
pub dgram_recv: usize,
pub dgram_sent: usize,
pub paths_count: usize,
pub reset_stream_count_local: u64,
pub stopped_stream_count_local: u64,
pub reset_stream_count_remote: u64,
pub stopped_stream_count_remote: u64,
pub data_blocked_sent_count: u64,
pub stream_data_blocked_sent_count: u64,
pub data_blocked_recv_count: u64,
pub stream_data_blocked_recv_count: u64,
pub path_challenge_rx_count: u64,
pub bytes_in_flight_duration: Duration,
}Expand description
Statistics about the connection.
A connection’s statistics can be collected using the stats() method.
Fields§
§recv: usizeThe number of QUIC packets received.
sent: usizeThe number of QUIC packets sent.
lost: usizeThe number of QUIC packets that were lost.
spurious_lost: usizeThe number of QUIC packets that were marked as lost but later acked.
retrans: usizeThe number of sent QUIC packets with retransmitted data.
sent_bytes: u64The number of sent bytes.
recv_bytes: u64The number of received bytes.
acked_bytes: u64The number of bytes sent acked.
lost_bytes: u64The number of bytes sent lost.
stream_retrans_bytes: u64The number of stream bytes retransmitted.
dgram_recv: usizeThe number of DATAGRAM frames received.
dgram_sent: usizeThe number of DATAGRAM frames sent.
paths_count: usizeThe number of known paths for the connection.
reset_stream_count_local: u64The number of streams reset by local.
stopped_stream_count_local: u64The number of streams stopped by local.
reset_stream_count_remote: u64The number of streams reset by remote.
stopped_stream_count_remote: u64The number of streams stopped by remote.
data_blocked_sent_count: u64The number of DATA_BLOCKED frames sent due to hitting the connection flow control limit.
stream_data_blocked_sent_count: u64The number of STREAM_DATA_BLOCKED frames sent due to a stream hitting the stream flow control limit.
data_blocked_recv_count: u64The number of DATA_BLOCKED frames received from the remote.
stream_data_blocked_recv_count: u64The number of STREAM_DATA_BLOCKED frames received from the remote.
path_challenge_rx_count: u64The total number of PATH_CHALLENGE frames that were received.
bytes_in_flight_duration: DurationTotal duration during which this side of the connection was actively sending bytes or waiting for those bytes to be acked.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more