pub struct Measurement<V> {
pub ts: Instant,
pub val: Option<V>,
}
Fields§
§ts: Instant
A time stamp
val: Option<V>
The measured value
Trait Implementations§
Source§impl<V: Clone> Clone for Measurement<V>
impl<V: Clone> Clone for Measurement<V>
Source§fn clone(&self) -> Measurement<V>
fn clone(&self) -> Measurement<V>
Returns a duplicate 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 moreSource§impl<V: Debug> Debug for Measurement<V>
impl<V: Debug> Debug for Measurement<V>
Source§impl<V: PartialEq> PartialEq for Measurement<V>
impl<V: PartialEq> PartialEq for Measurement<V>
impl<V: Eq> Eq for Measurement<V>
impl<V> StructuralPartialEq for Measurement<V>
Auto Trait Implementations§
impl<V> Freeze for Measurement<V>where
V: Freeze,
impl<V> RefUnwindSafe for Measurement<V>where
V: RefUnwindSafe,
impl<V> Send for Measurement<V>where
V: Send,
impl<V> Sync for Measurement<V>where
V: Sync,
impl<V> Unpin for Measurement<V>where
V: Unpin,
impl<V> UnwindSafe for Measurement<V>where
V: 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