pub struct TcpServerStats {
pub total_connections: u64,
pub active_connections: u64,
pub bytes_received: u64,
pub bytes_sent: u64,
}Expand description
Public TCP server statistics
Fields§
§total_connections: u64Connections accepted over the server’s lifetime.
active_connections: u64Connections currently open.
bytes_received: u64Bytes received across all connections.
bytes_sent: u64Bytes sent across all connections.
Trait Implementations§
Source§impl Clone for TcpServerStats
impl Clone for TcpServerStats
Auto Trait Implementations§
impl Freeze for TcpServerStats
impl RefUnwindSafe for TcpServerStats
impl Send for TcpServerStats
impl Sync for TcpServerStats
impl Unpin for TcpServerStats
impl UnsafeUnpin for TcpServerStats
impl UnwindSafe for TcpServerStats
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