Struct quiche::Stats

source ยท
pub struct Stats {
Show 13 fields pub recv: usize, pub sent: usize, pub lost: usize, pub retrans: usize, pub sent_bytes: u64, pub recv_bytes: u64, pub lost_bytes: u64, pub stream_retrans_bytes: u64, 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,
}
Expand description

Statistics about the connection.

A connectionโ€™s statistics can be collected using the stats() method.

Fieldsยง

ยงrecv: usize

The number of QUIC packets received.

ยงsent: usize

The number of QUIC packets sent.

ยงlost: usize

The number of QUIC packets that were lost.

ยงretrans: usize

The number of sent QUIC packets with retransmitted data.

ยงsent_bytes: u64

The number of sent bytes.

ยงrecv_bytes: u64

The number of received bytes.

ยงlost_bytes: u64

The number of bytes sent lost.

ยงstream_retrans_bytes: u64

The number of stream bytes retransmitted.

ยงpaths_count: usize

The number of known paths for the connection.

ยงreset_stream_count_local: u64

The number of streams reset by local.

ยงstopped_stream_count_local: u64

The number of streams stopped by local.

ยงreset_stream_count_remote: u64

The number of streams reset by remote.

ยงstopped_stream_count_remote: u64

The number of streams stopped by remote.

Trait Implementationsยง

sourceยง

impl Clone for Stats

sourceยง

fn clone(&self) -> Stats

Returns a copy of the value. Read more
1.0.0 ยท sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
sourceยง

impl Debug for Stats

sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
sourceยง

impl Default for Stats

sourceยง

fn default() -> Stats

Returns the โ€œdefault valueโ€ for a type. Read more

Auto Trait Implementationsยง

Blanket Implementationsยง

sourceยง

impl<T> Any for Twhere T: 'static + ?Sized,

sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
sourceยง

impl<T> Borrow<T> for Twhere T: ?Sized,

sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
sourceยง

impl<T> BorrowMut<T> for Twhere T: ?Sized,

sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
sourceยง

impl<T> From<T> for T

sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

sourceยง

impl<T, U> Into<U> for Twhere U: From<T>,

sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

sourceยง

impl<T> ToOwned for Twhere T: Clone,

ยง

type Owned = T

The resulting type after obtaining ownership.
sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
sourceยง

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

ยง

type Error = Infallible

The type returned in the event of a conversion error.
sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
sourceยง

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

ยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.