pub struct MetricsStats {
pub total_requests: u64,
pub request_counts: HashMap<String, u64>,
pub error_count: u64,
pub active_connections: u64,
pub average_response_time: Duration,
pub uptime: Duration,
}
Expand description
Statistics summary
Fields§
§total_requests: u64
§request_counts: HashMap<String, u64>
§error_count: u64
§active_connections: u64
§average_response_time: Duration
§uptime: Duration
Trait Implementations§
Source§impl Clone for MetricsStats
impl Clone for MetricsStats
Source§fn clone(&self) -> MetricsStats
fn clone(&self) -> MetricsStats
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 moreAuto Trait Implementations§
impl Freeze for MetricsStats
impl RefUnwindSafe for MetricsStats
impl Send for MetricsStats
impl Sync for MetricsStats
impl Unpin for MetricsStats
impl UnwindSafe for MetricsStats
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