pub struct CommittedGenerationBytes { /* private fields */ }Expand description
CommittedGenerationBytes
Physically committed ledger generation payload protected by a checksum.
This is an advanced low-level DTO for custom persistence/recovery integrations. Its recovered bytes are untrusted until marker/checksum validation and ledger decoding/integrity validation have both succeeded.
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.
Trait Implementations§
Source§impl Clone for CommittedGenerationBytes
impl Clone for CommittedGenerationBytes
Source§fn clone(&self) -> CommittedGenerationBytes
fn clone(&self) -> CommittedGenerationBytes
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 CommittedGenerationBytes
impl Debug for CommittedGenerationBytes
Source§impl<'de> Deserialize<'de> for CommittedGenerationBytes
impl<'de> Deserialize<'de> for CommittedGenerationBytes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for CommittedGenerationBytes
impl PartialEq for CommittedGenerationBytes
Source§fn eq(&self, other: &CommittedGenerationBytes) -> bool
fn eq(&self, other: &CommittedGenerationBytes) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommittedGenerationBytes
impl Serialize for CommittedGenerationBytes
impl Eq for CommittedGenerationBytes
impl StructuralPartialEq for CommittedGenerationBytes
Auto Trait Implementations§
impl Freeze for CommittedGenerationBytes
impl RefUnwindSafe for CommittedGenerationBytes
impl Send for CommittedGenerationBytes
impl Sync for CommittedGenerationBytes
impl Unpin for CommittedGenerationBytes
impl UnsafeUnpin for CommittedGenerationBytes
impl UnwindSafe for CommittedGenerationBytes
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