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