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: u16Manifest schema version.
generation: u64Monotonic snapshot generation shared by payload and Timeline pins.
source_cq_cursor: i64First Timer source CQ offset not represented by the snapshot.
source_physical_cursor: i64First source CommitLog byte not represented by the snapshot.
due_time_cursor_ms: i64Conservative due-time cursor represented by the Timeline checkpoint.
completion_physical_cursor: i64First final CommitLog byte whose completion fact must be replayed.
timeline_sequence: u64RocksDB sequence captured by the Timeline checkpoint.
timeline_index_kind: TimerTimelineIndexKindDurable 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: u64Durable delivery-owner epoch at snapshot creation.
activation_epoch: u64Minimum admission epoch accepted by this Extended group.
format_fingerprint: u64Persisted format/policy fingerprint.
timeline_checkpoint_uri: StringControlled artifact URI for the Timeline RocksDB checkpoint.
payload_files: Vec<TimerSnapshotFile>Immutable payload files copied into the artifact.
checksum: StringSHA-256 over the canonical manifest fields excluding this value.
Implementations§
Source§impl TimerSnapshotManifest
impl TimerSnapshotManifest
Sourcepub fn seal(&mut self) -> Result<(), StoreContractViolation>
pub fn seal(&mut self) -> Result<(), StoreContractViolation>
Computes and stores the canonical manifest checksum.
Sourcepub fn validate(&self) -> Result<(), StoreContractViolation>
pub fn validate(&self) -> Result<(), StoreContractViolation>
Validates shape, cursor monotonicity, file identities, and checksum.
Sourcepub fn validate_artifact_files(
&self,
artifact_root: impl AsRef<Path>,
) -> Result<(), StoreError>
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.