pub struct PublishSnapshot {
pub stream: StreamHeader,
pub tick_seq: u64,
pub epoch_ms: i64,
pub sequence: u64,
}Expand description
One published snapshot: the stream header plus the superblock payload
that was in the file at the same moment — the two things the seqlock
brackets. Their agreement is the guarantee; see Spine::read_snapshot.
Fields§
§stream: StreamHeader§tick_seq: u64Counter recorded by the last stream tick (distinct for two ticks in
one millisecond). Standalone layer writes advance sequence, not this
field; explicit superblock writes may replace the record.
epoch_ms: i64Wall-clock milliseconds at publish time. Freshness, not ordering.
sequence: u64The seqlock value this snapshot was read under; always even.
Trait Implementations§
Source§impl Clone for PublishSnapshot
impl Clone for PublishSnapshot
impl Copy for PublishSnapshot
Auto Trait Implementations§
impl Freeze for PublishSnapshot
impl RefUnwindSafe for PublishSnapshot
impl Send for PublishSnapshot
impl Sync for PublishSnapshot
impl Unpin for PublishSnapshot
impl UnsafeUnpin for PublishSnapshot
impl UnwindSafe for PublishSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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