pub struct CommittedAllocations { /* private fields */ }Expand description
CommittedAllocations
Allocation-open capability confirmed after the validated ledger generation was persisted.
This type is not serializable, default-constructible, or publicly
constructible. Generic persistence owners obtain it only by explicitly
confirming a successful crate::PendingBootstrapCommit. A
crate::MemoryRuntime stores it only after that runtime’s stable-cell write
succeeds.
Its immutable declarations have validated keys, slots and diagnostic metadata, with unique keys and slots. Consumers may rely on those invariants without rebuilding uniqueness sets. The capability does not validate live store bytes, application schemas, journals or lifecycle readiness.
Implementations§
Source§impl CommittedAllocations
impl CommittedAllocations
Sourcepub const fn generation(&self) -> u64
pub const fn generation(&self) -> u64
Return the persisted ledger generation that grants this capability.
Sourcepub fn declarations(&self) -> &[AllocationDeclaration]
pub fn declarations(&self) -> &[AllocationDeclaration]
Borrow the committed allocation declarations.
Sourcepub fn runtime_fingerprint(&self) -> Option<&str>
pub fn runtime_fingerprint(&self) -> Option<&str>
Borrow the optional runtime fingerprint.
Sourcepub fn slot_for(&self, key: &StableKey) -> Option<&AllocationSlotDescriptor>
pub fn slot_for(&self, key: &StableKey) -> Option<&AllocationSlotDescriptor>
Find a committed slot by stable key.