pub struct EndpointStats {
pub request_count: u64,
pub success_count: u64,
pub error_count: u64,
pub total_response_time: Duration,
}Expand description
Statistics for individual endpoints.
Fields§
§request_count: u64§success_count: u64§error_count: u64§total_response_time: DurationImplementations§
Source§impl EndpointStats
impl EndpointStats
pub fn average_response_time(&self) -> Duration
pub fn success_rate(&self) -> f64
Trait Implementations§
Source§impl Clone for EndpointStats
impl Clone for EndpointStats
Source§fn clone(&self) -> EndpointStats
fn clone(&self) -> EndpointStats
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 EndpointStats
impl RefUnwindSafe for EndpointStats
impl Send for EndpointStats
impl Sync for EndpointStats
impl Unpin for EndpointStats
impl UnwindSafe for EndpointStats
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