pub struct RecoveredLedger { /* private fields */ }Expand description
RecoveredLedger
Validated base for declaration checks: either a recovered ledger that passed current-format decoding, integrity checks and physical/logical counter binding, or empty logical genesis admitted only by explicit snapshot absence. Genesis is not a persisted generation. A decoded ledger alone is a passive DTO.
Implementations§
Source§impl RecoveredLedger
impl RecoveredLedger
Sourcepub const fn ledger(&self) -> &AllocationLedger
pub const fn ledger(&self) -> &AllocationLedger
Borrow the recovered metadata, without granting open authority.
Sourcepub const fn current_generation(&self) -> u64
pub const fn current_generation(&self) -> u64
Return the bound recovered counter, or zero for uncommitted logical genesis.
Trait Implementations§
Source§impl Clone for RecoveredLedger
impl Clone for RecoveredLedger
Source§impl Debug for RecoveredLedger
impl Debug for RecoveredLedger
impl Eq for RecoveredLedger
Source§impl PartialEq for RecoveredLedger
impl PartialEq for RecoveredLedger
impl StructuralPartialEq for RecoveredLedger
Auto Trait Implementations§
impl Freeze for RecoveredLedger
impl RefUnwindSafe for RecoveredLedger
impl Send for RecoveredLedger
impl Sync for RecoveredLedger
impl Unpin for RecoveredLedger
impl UnsafeUnpin for RecoveredLedger
impl UnwindSafe for RecoveredLedger
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