pub struct ConnectionStats {
pub smoothed_rtt: Duration,
pub min_rtt: Duration,
pub latest_rtt: Duration,
pub rtt_variance: Duration,
pub congestion_window: u64,
pub bytes_in_flight: u64,
pub packets_sent: u64,
pub packets_received: u64,
pub packets_lost: u64,
pub bytes_sent: u64,
pub bytes_received: u64,
}Expand description
Statistics about a QUIC connection (RFC 9002 §5).
Fields§
§smoothed_rtt: DurationCurrent smoothed round-trip time estimate.
min_rtt: DurationMinimum round-trip time observed.
latest_rtt: DurationLatest round-trip time sample.
rtt_variance: DurationVariance in round-trip time.
congestion_window: u64Current congestion window in bytes.
bytes_in_flight: u64Number of bytes currently in flight.
packets_sent: u64Total packets sent.
packets_received: u64Total packets received.
packets_lost: u64Total packets detected lost.
bytes_sent: u64Total stream/datagram payload bytes sent.
bytes_received: u64Total stream/datagram payload bytes received.
Trait Implementations§
Source§impl Clone for ConnectionStats
impl Clone for ConnectionStats
Source§fn clone(&self) -> ConnectionStats
fn clone(&self) -> ConnectionStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectionStats
impl Debug for ConnectionStats
Source§impl Default for ConnectionStats
impl Default for ConnectionStats
Source§fn default() -> ConnectionStats
fn default() -> ConnectionStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConnectionStats
impl RefUnwindSafe for ConnectionStats
impl Send for ConnectionStats
impl Sync for ConnectionStats
impl Unpin for ConnectionStats
impl UnsafeUnpin for ConnectionStats
impl UnwindSafe for ConnectionStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more