pub struct ByteStreamConnectionStats {Show 13 fields
pub peer_id: EndpointId,
pub selected_path: ConnectionPathKind,
pub open_paths: usize,
pub direct_paths: usize,
pub relay_paths: usize,
pub custom_paths: usize,
pub selected_rtt: Option<Duration>,
pub selected_tx_bytes: u64,
pub selected_rx_bytes: u64,
pub total_tx_bytes: u64,
pub total_rx_bytes: u64,
pub lost_packets: u64,
pub lost_bytes: u64,
}Expand description
Snapshot of low-level transport statistics for a byte stream connection.
Fields§
§peer_id: EndpointIdThe authenticated peer on the other side of the stream.
selected_path: ConnectionPathKindThe transport path currently selected for application traffic.
open_paths: usizeNumber of open paths on the underlying Iroh connection.
direct_paths: usizeNumber of open direct paths.
relay_paths: usizeNumber of open relay paths.
custom_paths: usizeNumber of open custom transport paths.
selected_rtt: Option<Duration>RTT of the selected path, when available.
selected_tx_bytes: u64UDP bytes transmitted on the selected path.
selected_rx_bytes: u64UDP bytes received on the selected path.
total_tx_bytes: u64UDP bytes transmitted on the whole connection.
total_rx_bytes: u64UDP bytes received on the whole connection.
lost_packets: u64Packets lost on the whole connection.
lost_bytes: u64Bytes lost on the whole connection.
Trait Implementations§
Source§impl Clone for ByteStreamConnectionStats
impl Clone for ByteStreamConnectionStats
impl Copy for ByteStreamConnectionStats
Source§impl Debug for ByteStreamConnectionStats
impl Debug for ByteStreamConnectionStats
impl Eq for ByteStreamConnectionStats
impl StructuralPartialEq for ByteStreamConnectionStats
Auto Trait Implementations§
impl Freeze for ByteStreamConnectionStats
impl RefUnwindSafe for ByteStreamConnectionStats
impl Send for ByteStreamConnectionStats
impl Sync for ByteStreamConnectionStats
impl Unpin for ByteStreamConnectionStats
impl UnsafeUnpin for ByteStreamConnectionStats
impl UnwindSafe for ByteStreamConnectionStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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