pub struct LiveStatistics { /* private fields */ }
Expand description
Accumulative stat object that can give your some real time statistics.
Implementations§
Source§impl LiveStatistics
impl LiveStatistics
pub fn new_unbounded() -> LiveStatistics
pub fn new_with_max(max: u64) -> LiveStatistics
pub fn min(&self) -> u64
pub fn max(&self) -> u64
pub fn mean(&self) -> f64
pub fn percentile(&self, percentile: f64) -> u64
pub fn len(&self) -> u64
pub fn is_empty(&self) -> bool
pub fn reset(&mut self)
Trait Implementations§
Source§impl Clone for LiveStatistics
impl Clone for LiveStatistics
Source§fn clone(&self) -> LiveStatistics
fn clone(&self) -> LiveStatistics
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LiveStatistics
impl RefUnwindSafe for LiveStatistics
impl Send for LiveStatistics
impl Sync for LiveStatistics
impl Unpin for LiveStatistics
impl UnwindSafe for LiveStatistics
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