pub struct ClientStats {
pub active_connections: usize,
pub total_requests: u64,
pub total_errors: u64,
pub last_active: SystemTime,
pub last_error: Option<SystemTime>,
pub avg_response_time_ms: u64,
}Expand description
Stats for a single client
Fields§
§active_connections: usizeNumber of active connections from this address
total_requests: u64Total number of requests
total_errors: u64Total number of errors
last_active: SystemTimeLast activity
last_error: Option<SystemTime>Timestamp of the last error
avg_response_time_ms: u64Average response time
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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