pub struct IpStats {
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 IP address
Fields§
§active_connections: usize§total_requests: u64§total_errors: u64§last_active: SystemTime§last_error: Option<SystemTime>§avg_response_time_ms: u64Trait 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