Struct msr_core::Measurement
source · [−]Fields
ts: Instant
A time stamp
val: Option<V>
The measured value
Trait Implementations
sourceimpl<V: Clone> Clone for Measurement<V>
impl<V: Clone> Clone for Measurement<V>
sourcefn clone(&self) -> Measurement<V>
fn clone(&self) -> Measurement<V>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<V: Debug> Debug for Measurement<V>
impl<V: Debug> Debug for Measurement<V>
sourceimpl<V: PartialEq> PartialEq<Measurement<V>> for Measurement<V>
impl<V: PartialEq> PartialEq<Measurement<V>> for Measurement<V>
sourcefn eq(&self, other: &Measurement<V>) -> bool
fn eq(&self, other: &Measurement<V>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<V: Eq> Eq for Measurement<V>
impl<V> StructuralEq for Measurement<V>
impl<V> StructuralPartialEq for Measurement<V>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more