pub struct ServerStats {
pub total_connections: u64,
pub active_connections: u64,
pub total_bytes_received: u64,
pub total_bytes_sent: u64,
pub active_streams: u64,
pub uptime: Duration,
}Expand description
Server-wide statistics
Fields§
§total_connections: u64Total connections ever
active_connections: u64Current active connections
total_bytes_received: u64Total bytes received
total_bytes_sent: u64Total bytes sent
active_streams: u64Active streams
uptime: DurationUptime
Implementations§
Source§impl ServerStats
impl ServerStats
Trait Implementations§
Source§impl Clone for ServerStats
impl Clone for ServerStats
Source§fn clone(&self) -> ServerStats
fn clone(&self) -> ServerStats
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 ServerStats
impl Debug for ServerStats
Source§impl Default for ServerStats
impl Default for ServerStats
Source§fn default() -> ServerStats
fn default() -> ServerStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServerStats
impl RefUnwindSafe for ServerStats
impl Send for ServerStats
impl Sync for ServerStats
impl Unpin 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