pub struct ConnectionStats {
pub total_connections: u64,
pub active_connections: usize,
pub total_requests: u64,
pub total_errors: u64,
pub requests_per_second: f64,
pub avg_response_time_ms: u64,
pub per_ip_stats: HashMap<SocketAddr, IpStats>,
}Fields§
§total_connections: u64§active_connections: usize§total_requests: u64§total_errors: u64§requests_per_second: f64§avg_response_time_ms: u64§per_ip_stats: HashMap<SocketAddr, IpStats>Implementations§
Source§impl Stats
impl Stats
pub fn from_client_stats(stats: &HashMap<SocketAddr, ClientStats>) -> Self
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