Skip to main content

TimerSnapshotManifest

Struct TimerSnapshotManifest 

Source
pub struct TimerSnapshotManifest {
Show 18 fields pub schema_version: u16, pub generation: u64, pub source_cq_cursor: i64, pub source_physical_cursor: i64, pub due_time_cursor_ms: i64, pub completion_physical_cursor: i64, pub timeline_sequence: u64, pub timeline_index_kind: TimerTimelineIndexKind, pub native_manifest_generation: Option<u64>, pub native_durable_end: Option<u64>, pub native_manifest_checksum: Option<u32>, pub native_files: Vec<TimerSnapshotFile>, pub role_epoch: u64, pub activation_epoch: u64, pub format_fingerprint: u64, pub timeline_checkpoint_uri: String, pub payload_files: Vec<TimerSnapshotFile>, pub checksum: String,
}
Expand description

Versioned handoff contract for Timeline, payload, and both replay streams.

Fields§

§schema_version: u16

Manifest schema version.

§generation: u64

Monotonic snapshot generation shared by payload and Timeline pins.

§source_cq_cursor: i64

First Timer source CQ offset not represented by the snapshot.

§source_physical_cursor: i64

First source CommitLog byte not represented by the snapshot.

§due_time_cursor_ms: i64

Conservative due-time cursor represented by the Timeline checkpoint.

§completion_physical_cursor: i64

First final CommitLog byte whose completion fact must be replayed.

§timeline_sequence: u64

RocksDB sequence captured by the Timeline checkpoint.

§timeline_index_kind: TimerTimelineIndexKind

Durable owner of the large ordered Timeline index.

§native_manifest_generation: Option<u64>

Exact archived native manifest generation for a segmented snapshot.

§native_durable_end: Option<u64>

Exact native durable end paired with timeline_sequence.

§native_manifest_checksum: Option<u32>

CRC32C of the archived native manifest.

§native_files: Vec<TimerSnapshotFile>

Immutable native manifest and run files for a segmented snapshot.

§role_epoch: u64

Durable delivery-owner epoch at snapshot creation.

§activation_epoch: u64

Minimum admission epoch accepted by this Extended group.

§format_fingerprint: u64

Persisted format/policy fingerprint.

§timeline_checkpoint_uri: String

Controlled artifact URI for the Timeline RocksDB checkpoint.

§payload_files: Vec<TimerSnapshotFile>

Immutable payload files copied into the artifact.

§checksum: String

SHA-256 over the canonical manifest fields excluding this value.

Implementations§

Source§

impl TimerSnapshotManifest

Source

pub fn seal(&mut self) -> Result<(), StoreContractViolation>

Computes and stores the canonical manifest checksum.

Source

pub fn validate(&self) -> Result<(), StoreContractViolation>

Validates shape, cursor monotonicity, file identities, and checksum.

Source

pub fn validate_artifact_files( &self, artifact_root: impl AsRef<Path>, ) -> Result<(), StoreError>

Validates every payload and native file against its exact length and SHA-256 identity.

§Errors

Returns StoreError if a file cannot be opened or read, and preserves StoreContractViolation::TimerSnapshotArtifactDigestMismatch as a typed source if its declared identity differs.

Trait Implementations§

Source§

impl Clone for TimerSnapshotManifest

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TimerSnapshotManifest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TimerSnapshotManifest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for TimerSnapshotManifest

Source§

impl PartialEq for TimerSnapshotManifest

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for TimerSnapshotManifest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TimerSnapshotManifest

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.