pub struct Histogram { /* private fields */ }Expand description
A histogram.
Implementations§
Source§impl Histogram
impl Histogram
Sourcepub const fn noop() -> Histogram
pub const 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§
Source§impl<T> From<Generational<T>> for Histogram
impl<T> From<Generational<T>> for Histogram
Source§fn from(inner: Generational<T>) -> Histogram
fn from(inner: Generational<T>) -> Histogram
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Histogram
impl !UnwindSafe for Histogram
impl Freeze for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnsafeUnpin 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