pub struct PeerStats {
pub relay: bool,
pub relay_url: Option<String>,
pub paths: Vec<PathInfo>,
pub rtt_ms: Option<f64>,
pub bytes_sent: Option<u64>,
pub bytes_received: Option<u64>,
pub lost_packets: Option<u64>,
pub sent_packets: Option<u64>,
pub congestion_window: Option<u64>,
}Expand description
Per-peer connection statistics.
Fields§
§relay: boolWhether the peer is connected via a relay server (vs direct).
relay_url: Option<String>Active relay URL, if any.
paths: Vec<PathInfo>All known paths to this peer.
rtt_ms: Option<f64>Round-trip time in milliseconds. None if no active QUIC connection is pooled.
bytes_sent: Option<u64>Total UDP bytes sent to this peer. None if no active QUIC connection is pooled.
bytes_received: Option<u64>Total UDP bytes received from this peer. None if no active QUIC connection is pooled.
lost_packets: Option<u64>Total packets lost on the QUIC path. None if no active QUIC connection is pooled.
sent_packets: Option<u64>Total packets sent on the QUIC path. None if no active QUIC connection is pooled.
congestion_window: Option<u64>Current congestion window in bytes. None if no active QUIC connection is pooled.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PeerStats
impl<'de> Deserialize<'de> for PeerStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PeerStats
impl RefUnwindSafe for PeerStats
impl Send for PeerStats
impl Sync for PeerStats
impl Unpin for PeerStats
impl UnsafeUnpin for PeerStats
impl UnwindSafe for PeerStats
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