pub struct Histogram { /* private fields */ }Implementations§
Source§impl Histogram
impl Histogram
pub fn new() -> Self
pub fn with_buckets(buckets: &'static [u64]) -> Self
pub fn observe(&self, duration: Duration)
pub fn count(&self) -> u64
pub fn sum(&self) -> u64
pub fn avg(&self) -> f64
pub fn min(&self) -> u64
pub fn max(&self) -> u64
pub fn bucket_counts(&self) -> Vec<u64>
pub fn reset(&self)
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