pub struct Histogram { /* private fields */ }Expand description
A histogram.
Implementations§
Source§impl Histogram
impl Histogram
Sourcepub fn noop() -> Histogram
pub fn noop() -> Histogram
Creates a no-op Histogram which does nothing.
Suitable when a handle must be provided that does nothing i.e. a no-op recorder or a layer that disables specific metrics, and so on.
Sourcepub fn record_many<T>(&self, value: T, count: usize)where
T: IntoF64,
pub fn record_many<T>(&self, value: T, count: usize)where
T: IntoF64,
Records a value into the histogram multiple times.
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 !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