pub struct Sampled<'a> {
pub value: &'a Measure,
pub epoch: Option<&'a str>,
pub timestamp_ms: Option<i64>,
pub stamp_ns: Option<i128>,
pub arrival_ns: i128,
pub record: Option<RecordTime>,
}Expand description
One sample of a pair, as the reader holds it (§2.10, §2.11).
Fields§
§value: &'a MeasureThe conforming sample’s value; its kind is the sample’s.
epoch: Option<&'a str>Its in-band epoch (§2.9), if it carries one.
timestamp_ms: Option<i64>The Point’s timestamp, for a Point.
stamp_ns: Option<i128>The owner’s stamp, in nanoseconds since the Unix epoch, for state:
stamp_ns of its NTP64 value (0.2).
arrival_ns: i128When the reader received it, in nanoseconds on its monotonic clock.
record: Option<RecordTime>A frame’s sample: its record’s time (v2 §2.21). None for every v1
carrier, whose time base is §2.11’s list.
Trait Implementations§
impl<'a> Copy for Sampled<'a>
impl<'a> StructuralPartialEq for Sampled<'a>
Auto Trait Implementations§
impl<'a> Forget for Sampled<'a>
impl<'a> Freeze for Sampled<'a>
impl<'a> Move for Sampled<'a>
impl<'a> RefUnwindSafe for Sampled<'a>
impl<'a> Send for Sampled<'a>
impl<'a> Sync for Sampled<'a>where
RawVecInner: Sync,
impl<'a> Unpin for Sampled<'a>
impl<'a> UnsafeUnpin for Sampled<'a>
impl<'a> UnwindSafe for Sampled<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more