pub struct ConnectionStatistics {
pub total_connections: u64,
pub active_connections: u32,
pub total_bytes_sent: u64,
pub total_bytes_received: u64,
pub avg_bandwidth_usage: f64,
pub peak_concurrent_connections: u32,
pub connection_timeouts: u64,
pub keep_alive_sent: u64,
}
Expand description
Connection-level statistics
Fields§
§total_connections: u64
Total relay connections established
active_connections: u32
Currently active connections
total_bytes_sent: u64
Total bytes sent through all connections
total_bytes_received: u64
Total bytes received through all connections
avg_bandwidth_usage: f64
Average connection bandwidth usage (bytes/sec)
peak_concurrent_connections: u32
Peak concurrent connections
connection_timeouts: u64
Connection timeouts
keep_alive_sent: u64
Keep-alive packets sent
Trait Implementations§
Source§impl Clone for ConnectionStatistics
impl Clone for ConnectionStatistics
Source§fn clone(&self) -> ConnectionStatistics
fn clone(&self) -> ConnectionStatistics
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 ConnectionStatistics
impl Debug for ConnectionStatistics
Source§impl Default for ConnectionStatistics
impl Default for ConnectionStatistics
Source§fn default() -> ConnectionStatistics
fn default() -> ConnectionStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConnectionStatistics
impl RefUnwindSafe for ConnectionStatistics
impl Send for ConnectionStatistics
impl Sync for ConnectionStatistics
impl Unpin for ConnectionStatistics
impl UnwindSafe for ConnectionStatistics
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