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.
This is an advanced protocol byte wrapper, not an authority token. Decoding
an envelope only classifies the logical payload; authority is established
later when crate::LedgerCommitStore routes the payload, checks
the current ledger format, validates committed ledger integrity, and returns
crate::RecoveredLedger.
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.
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