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. crate::MemoryRuntime publishes it only after its
stable-cell write succeeds; callers cannot manually confirm persistence.
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 slot_for(&self, key: &StableKey) -> Option<&MemoryManagerSlot>
pub fn slot_for(&self, key: &StableKey) -> Option<&MemoryManagerSlot>
Find a committed slot by stable key.
Trait Implementations§
Source§impl Clone for CommittedAllocations
impl Clone for CommittedAllocations
Source§impl Debug for CommittedAllocations
impl Debug for CommittedAllocations
impl Eq for CommittedAllocations
Source§impl PartialEq for CommittedAllocations
impl PartialEq for CommittedAllocations
impl StructuralPartialEq for CommittedAllocations
Auto Trait Implementations§
impl Freeze for CommittedAllocations
impl RefUnwindSafe for CommittedAllocations
impl Send for CommittedAllocations
impl Sync for CommittedAllocations
impl Unpin for CommittedAllocations
impl UnsafeUnpin for CommittedAllocations
impl UnwindSafe for CommittedAllocations
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