pub struct MethodMetrics {
pub attempts: u64,
pub successes: u64,
pub empty_results: u64,
pub failures: u64,
pub total_latency: Duration,
}Fields§
§attempts: u64§successes: u64§empty_results: u64§failures: u64§total_latency: DurationImplementations§
Source§impl MethodMetrics
impl MethodMetrics
pub fn success_rate(&self) -> f64
pub fn average_latency(&self) -> Duration
Trait Implementations§
Source§impl Clone for MethodMetrics
impl Clone for MethodMetrics
Source§fn clone(&self) -> MethodMetrics
fn clone(&self) -> MethodMetrics
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 moreSource§impl Debug for MethodMetrics
impl Debug for MethodMetrics
Source§impl Default for MethodMetrics
impl Default for MethodMetrics
Source§fn default() -> MethodMetrics
fn default() -> MethodMetrics
Returns the “default value” for a type. Read more
Source§impl PartialEq for MethodMetrics
impl PartialEq for MethodMetrics
impl Eq for MethodMetrics
impl StructuralPartialEq for MethodMetrics
Auto Trait Implementations§
impl Freeze for MethodMetrics
impl RefUnwindSafe for MethodMetrics
impl Send for MethodMetrics
impl Sync for MethodMetrics
impl Unpin for MethodMetrics
impl UnsafeUnpin for MethodMetrics
impl UnwindSafe for MethodMetrics
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