pub struct Histogram { /* private fields */ }Expand description
Histogram metric for latency tracking
Implementations§
Source§impl Histogram
impl Histogram
Sourcepub fn with_default_buckets() -> Self
pub fn with_default_buckets() -> Self
Create with default latency buckets
Sourcepub fn observe_duration(&self, duration: Duration)
pub fn observe_duration(&self, duration: Duration)
Observe a duration
Sourcepub fn bucket_counts(&self) -> Vec<u64>
pub fn bucket_counts(&self) -> Vec<u64>
Get bucket counts
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Histogram
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnsafeUnpin for Histogram
impl UnwindSafe for Histogram
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