pub struct Sample<'a> {
pub series: &'a SeriesRef,
pub timestamp: i64,
pub value: SampleValue<'a>,
}Expand description
One decoded sample, borrowed from the iterator’s scratch buffer.
The value borrows from the iterator, so it is valid until the next call to
SampleIterator::next_sample.
Fields§
§series: &'a SeriesRefSeries the sample belongs to, including its labels and chunk list.
timestamp: i64Timestamp in milliseconds since the Unix epoch.
value: SampleValue<'a>Decoded value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Sample<'a>
impl<'a> Freeze for Sample<'a>
impl<'a> Move for Sample<'a>
impl<'a> RefUnwindSafe for Sample<'a>
impl<'a> Send for Sample<'a>
impl<'a> Sync for Sample<'a>
impl<'a> Unpin for Sample<'a>
impl<'a> UnsafeUnpin for Sample<'a>where
&'a SeriesRef: UnsafeUnpin,
&'a [Span]: UnsafeUnpin,
&'a [i64]: UnsafeUnpin,
&'a [f64]: UnsafeUnpin,
impl<'a> UnwindSafe for Sample<'a>where
&'a SeriesRef: UnwindSafe,
&'a [Span]: UnwindSafe,
&'a [i64]: UnwindSafe,
&'a [f64]: 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