pub struct ServerStats {
pub active_connections: usize,
pub total_requests: u64,
pub cache_hit_rate: f64,
pub uptime_secs: u64,
pub bytes_sent: u64,
pub bytes_received: u64,
}Expand description
Server statistics
Fields§
§active_connections: usizeNumber of active connections
total_requests: u64Total number of requests served
cache_hit_rate: f64Cache hit rate (0.0 to 1.0)
uptime_secs: u64Server uptime in seconds
bytes_sent: u64Total bytes sent
bytes_received: u64Total bytes received
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<'de> Deserialize<'de> for ServerStats
impl<'de> Deserialize<'de> for ServerStats
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
Source§impl PartialEq for ServerStats
impl PartialEq for ServerStats
Source§impl Serialize for ServerStats
impl Serialize for ServerStats
impl StructuralPartialEq 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