pub struct ConnectionStats {
pub success_count: u32,
pub failure_count: u32,
pub avg_rtt_ms: u32,
pub min_rtt_ms: u32,
pub max_rtt_ms: u32,
pub bytes_relayed: u64,
pub coordinations_completed: u32,
}Expand description
Connection statistics for quality scoring
Fields§
§success_count: u32Total successful connections
failure_count: u32Total failed connection attempts
avg_rtt_ms: u32Exponential moving average RTT in milliseconds
min_rtt_ms: u32Minimum observed RTT
max_rtt_ms: u32Maximum observed RTT
bytes_relayed: u64Total bytes relayed through this peer (if relay)
coordinations_completed: u32Number of NAT traversals coordinated (if coordinator)
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 · 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
Source§impl<'de> Deserialize<'de> for ConnectionStats
impl<'de> Deserialize<'de> for ConnectionStats
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 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
Mutably borrows from an owned value. Read more