pub struct ClientStats {
pub active_connections: usize,
pub last_active: Instant,
pub total_requests: u64,
pub error_count: u64,
pub last_error: Option<Instant>,
}
Expand description
Stats for a single client
Fields§
§active_connections: usize
Number of active connections from this address
last_active: Instant
Last activity
total_requests: u64
Total number of requests
error_count: u64
Number of errors
last_error: Option<Instant>
Timestamp of the last error
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