pub struct Measurement<T> { /* private fields */ }
Expand description
Represent result of the calculation of running average
Implementations§
Source§impl<T> Measurement<T>
impl<T> Measurement<T>
Sourcepub fn value(&self) -> &T
pub fn value(&self) -> &T
Returns pointer to internal value of the measurement which is sum of all samples within time window
Sourcepub fn unwrap(self) -> T
pub fn unwrap(self) -> T
Returns internal value of the measurement which is sum of all samples within time window consuming self
Trait Implementations§
Source§impl<T: Debug> Debug for Measurement<T>
impl<T: Debug> Debug for Measurement<T>
Auto Trait Implementations§
impl<T> Freeze for Measurement<T>where
T: Freeze,
impl<T> RefUnwindSafe for Measurement<T>where
T: RefUnwindSafe,
impl<T> Send for Measurement<T>where
T: Send,
impl<T> Sync for Measurement<T>where
T: Sync,
impl<T> Unpin for Measurement<T>where
T: Unpin,
impl<T> UnwindSafe for Measurement<T>where
T: UnwindSafe,
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