pub struct LedgerSnapshot {
pub magic: u64,
pub format_id: u32,
pub schema_version: u32,
pub header_len: u32,
pub header_checksum: u64,
pub current_generation: u64,
pub authorities: Vec<MemoryRangeAuthority>,
pub ranges: Vec<(String, MemoryRange)>,
pub entries: Vec<(u8, MemoryRegistryEntry)>,
}Expand description
LedgerSnapshot
Read-only snapshot of the persisted ABI ledger.
Fields§
§magic: u64Ledger magic value from the physical header.
format_id: u32Ledger physical format identifier from the header.
schema_version: u32Ledger schema version from the header.
header_len: u32Encoded ledger header length.
header_checksum: u64Header checksum covering the persisted header fields.
current_generation: u64Authoritative committed generation selected by recovery validation.
Canonical allocation authority ranges recorded by the persisted ABI ledger.
ranges: Vec<(String, MemoryRange)>Historical owner ranges recorded by the persisted ABI ledger.
entries: Vec<(u8, MemoryRegistryEntry)>Historical memory ID records recorded by the persisted ABI ledger.
Trait Implementations§
Source§impl Clone for LedgerSnapshot
impl Clone for LedgerSnapshot
Source§fn clone(&self) -> LedgerSnapshot
fn clone(&self) -> LedgerSnapshot
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 LedgerSnapshot
impl Debug for LedgerSnapshot
Source§impl PartialEq for LedgerSnapshot
impl PartialEq for LedgerSnapshot
Source§fn eq(&self, other: &LedgerSnapshot) -> bool
fn eq(&self, other: &LedgerSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LedgerSnapshot
impl StructuralPartialEq for LedgerSnapshot
Auto Trait Implementations§
impl Freeze for LedgerSnapshot
impl RefUnwindSafe for LedgerSnapshot
impl Send for LedgerSnapshot
impl Sync for LedgerSnapshot
impl Unpin for LedgerSnapshot
impl UnsafeUnpin for LedgerSnapshot
impl UnwindSafe for LedgerSnapshot
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