#[non_exhaustive]pub struct ConnectionStats {
pub udp_tx: UdpStats,
pub udp_rx: UdpStats,
pub frame_tx: FrameStats,
pub frame_rx: FrameStats,
pub sent_packets: u64,
pub sent_bytes: u64,
pub lost_packets: u64,
pub lost_bytes: u64,
}Expand description
Connection statistics.
The fields here are a sum of the respective fields in the PathStats for all the
paths that exist as well as all paths that previously existed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.udp_tx: UdpStatsStatistics about UDP datagrams transmitted on the connection.
udp_rx: UdpStatsStatistics about UDP datagrams received on the connection.
frame_tx: FrameStatsStatistics about frames transmitted on the connection.
frame_rx: FrameStatsStatistics about frames received on the connection.
sent_packets: u64The number of QUIC packets sent on the connection (sum across all paths).
See also PathStats::sent_packets.
sent_bytes: u64The total number of QUIC bytes sent on the connection (sum across all paths).
See also PathStats::sent_bytes.
lost_packets: u64The number of packets lost on the connection.
See also PathStats::lost_packets.
lost_bytes: u64The number of bytes lost on the connection.
See also PathStats::lost_bytes.
Trait Implementations§
Source§impl Add<PathStats> for ConnectionStats
impl Add<PathStats> for ConnectionStats
Source§impl AddAssign<PathStats> for ConnectionStats
impl AddAssign<PathStats> for ConnectionStats
Source§fn add_assign(&mut self, rhs: PathStats)
fn add_assign(&mut self, rhs: PathStats)
+= operation. Read moreSource§impl Clone for ConnectionStats
impl Clone for ConnectionStats
Source§fn clone(&self) -> ConnectionStats
fn clone(&self) -> ConnectionStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
Auto Trait Implementations§
impl Freeze for ConnectionStats
impl RefUnwindSafe for ConnectionStats
impl Send for ConnectionStats
impl Sync for ConnectionStats
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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