pub struct RecoveredLedger { /* private fields */ }Expand description
RecoveredLedger
Proof object for an allocation ledger that has crossed physical recovery, logical payload-envelope routing, current-format checks, and committed integrity validation.
Recovery checks that physical and logical generations agree before constructing this proof; both generation accessors report that one value.
This type is not serializable and has no public constructor. It is the
provenance boundary required before declarations can mint pre-commit
crate::ValidatedAllocations.
Implementations§
Source§impl RecoveredLedger
impl RecoveredLedger
Sourcepub const fn ledger(&self) -> &AllocationLedger
pub const fn ledger(&self) -> &AllocationLedger
Borrow the recovered canonical allocation ledger.
The returned ledger is diagnostic/staging state. It is not itself an
authority token; callers must keep passing the RecoveredLedger proof
across validation boundaries.
Sourcepub const fn physical_generation(&self) -> u64
pub const fn physical_generation(&self) -> u64
Return the selected physical committed generation. Recovery has established that it equals the current logical generation.
Sourcepub const fn current_generation(&self) -> u64
pub const fn current_generation(&self) -> u64
Return the recovered ledger’s current logical generation.