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. The default runtime
publishes it only after its stable cell write succeeds.
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.
Trait Implementations§
Source§impl Clone for CommittedAllocations
impl Clone for CommittedAllocations
Source§fn clone(&self) -> CommittedAllocations
fn clone(&self) -> CommittedAllocations
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 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