pub struct ServerStats {
pub total_connections: AtomicU64,
pub active_connections: AtomicU64,
pub bytes_received: AtomicU64,
pub bytes_sent: AtomicU64,
}Expand description
TCP server statistics for monitoring
Fields§
§total_connections: AtomicU64Connections accepted over the server’s lifetime.
active_connections: AtomicU64Connections currently tracked as open.
bytes_received: AtomicU64Bytes received across all connections.
bytes_sent: AtomicU64Bytes sent across all connections.
Trait Implementations§
Source§impl Debug for ServerStats
impl Debug for ServerStats
Auto Trait Implementations§
impl !Freeze for ServerStats
impl RefUnwindSafe for ServerStats
impl Send for ServerStats
impl Sync for ServerStats
impl Unpin for ServerStats
impl UnsafeUnpin for ServerStats
impl UnwindSafe for ServerStats
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