pub struct Histogram(/* private fields */);Implementations§
Source§impl Histogram
impl Histogram
pub fn new_some(inner: Histogram) -> Self
pub fn new_none() -> Self
pub fn with_opts(opts: HistogramOpts) -> Result<Self>
pub fn observe(&self, v: f64)
pub fn start_timer(&self) -> HistogramTimer
pub fn get_sample_count(&self) -> u64
pub fn get_sample_sum(&self) -> f64
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