pub struct LedgerPayloadEnvelope { /* private fields */ }Expand description
LedgerPayloadEnvelope
Logical ledger payload envelope embedded inside one physically committed generation. This layer is decoded after physical dual-slot recovery selects a committed generation and before any allocation-ledger DTO is decoded.
Implementations§
Source§impl LedgerPayloadEnvelope
impl LedgerPayloadEnvelope
Sourcepub fn decode(bytes: &[u8]) -> Result<Self, LedgerPayloadEnvelopeError>
pub fn decode(bytes: &[u8]) -> Result<Self, LedgerPayloadEnvelopeError>
Manually decode the logical payload envelope.
Sourcepub const fn envelope_version(&self) -> u16
pub const fn envelope_version(&self) -> u16
Return the envelope format version.
Sourcepub const fn ledger_schema_version(&self) -> u32
pub const fn ledger_schema_version(&self) -> u32
Return the logical ledger schema version declared by the envelope.
Sourcepub const fn physical_format_id(&self) -> u32
pub const fn physical_format_id(&self) -> u32
Return the physical ledger format ID declared by the envelope.
Trait Implementations§
Source§impl Clone for LedgerPayloadEnvelope
impl Clone for LedgerPayloadEnvelope
Source§fn clone(&self) -> LedgerPayloadEnvelope
fn clone(&self) -> LedgerPayloadEnvelope
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 LedgerPayloadEnvelope
impl Debug for LedgerPayloadEnvelope
Source§impl PartialEq for LedgerPayloadEnvelope
impl PartialEq for LedgerPayloadEnvelope
Source§fn eq(&self, other: &LedgerPayloadEnvelope) -> bool
fn eq(&self, other: &LedgerPayloadEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LedgerPayloadEnvelope
impl StructuralPartialEq for LedgerPayloadEnvelope
Auto Trait Implementations§
impl Freeze for LedgerPayloadEnvelope
impl RefUnwindSafe for LedgerPayloadEnvelope
impl Send for LedgerPayloadEnvelope
impl Sync for LedgerPayloadEnvelope
impl Unpin for LedgerPayloadEnvelope
impl UnsafeUnpin for LedgerPayloadEnvelope
impl UnwindSafe for LedgerPayloadEnvelope
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