pub struct TimelineRow {
pub key: String,
pub lane: LaneId,
pub t_us: u64,
pub hlc: Option<HlcStamp>,
pub source: Option<String>,
pub sn: Option<u32>,
pub kind: RowKind,
pub payload_bytes: usize,
}Expand description
One sample, reduced to what a timeline needs: where it sits on each axis, which lane it belongs to, and what it was. No payload — the timeline is about when, and a pane that wants the bytes has the retained window.
Fields§
§key: String§lane: LaneId§t_us: u64Arrival, µs since the window epoch (the observer’s monotonic clock).
hlc: Option<HlcStamp>None exactly when the lane is LaneId::Unstamped.
source: Option<String>The publishing entity, zid:eid, when SourceInfo rode the sample.
sn: Option<u32>That entity’s sequence number for this sample.
kind: RowKind§payload_bytes: usizeImplementations§
Source§impl TimelineRow
impl TimelineRow
Sourcepub fn from_view(view: &SampleView, epoch: Instant, base: &str) -> TimelineRow
pub fn from_view(view: &SampleView, epoch: Instant, base: &str) -> TimelineRow
A row from a live sample, t_us measured from epoch — the instant
the caller’s watches were all declared. A sample received before the
epoch saturates to 0, as ZrecWriter does.
Trait Implementations§
Source§impl Clone for TimelineRow
impl Clone for TimelineRow
Source§fn clone(&self) -> TimelineRow
fn clone(&self) -> TimelineRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimelineRow
impl Debug for TimelineRow
impl Eq for TimelineRow
Source§impl PartialEq for TimelineRow
impl PartialEq for TimelineRow
impl StructuralPartialEq for TimelineRow
Auto Trait Implementations§
impl Freeze for TimelineRow
impl RefUnwindSafe for TimelineRow
impl Send for TimelineRow
impl Sync for TimelineRow
impl Unpin for TimelineRow
impl UnsafeUnpin for TimelineRow
impl UnwindSafe for TimelineRow
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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