pub struct CommittedGenerationBytes { /* private fields */ }Expand description
CommittedGenerationBytes
Committed ledger generation payload protected by a checksum.
This is an advanced low-level DTO for framework or stable-IO owners. Its recovered bytes are untrusted until marker/checksum validation and ledger decoding/integrity validation have both succeeded. Binary serde formats encode the payload as a bounded byte string; human-readable formats retain an array of bytes. Direct serde decoding is a DTO operation: maintained durable readers additionally preflight CBOR before allocation.
Implementations§
Source§impl CommittedGenerationBytes
impl CommittedGenerationBytes
Sourcepub const fn generation(&self) -> u64
pub const fn generation(&self) -> u64
Return the generation number represented by this payload.
Sourcepub const fn commit_marker(&self) -> u64
pub const fn commit_marker(&self) -> u64
Return the physical commit marker.
This is diagnostic data from a recovered record. Callers should use
CommittedGenerationBytes::validates before treating the record as
authoritative.