pub struct ValidatedAllocations { /* private fields */ }Expand description
ValidatedAllocations
Pre-commit allocation declarations accepted by policy and historical ledger validation.
This value is produced by crate::validate_allocations and may be staged
into the next ledger generation. It cannot construct an
AllocationSession or open storage. Only a CommittedAllocations
capability confirmed after persistence can do that.
This is an in-memory capability, not a serde DTO. It has no public constructor and should only be produced by validation or bootstrap paths.
Implementations§
Source§impl ValidatedAllocations
impl ValidatedAllocations
Sourcepub fn base_generation(&self) -> u64
pub fn base_generation(&self) -> u64
Return the recovered generation used as the validation base.
Sourcepub fn declarations(&self) -> &[AllocationDeclaration]
pub fn declarations(&self) -> &[AllocationDeclaration]
Borrow the validated 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 validated slot by stable key.
Trait Implementations§
Source§impl Clone for ValidatedAllocations
impl Clone for ValidatedAllocations
Source§fn clone(&self) -> ValidatedAllocations
fn clone(&self) -> ValidatedAllocations
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 ValidatedAllocations
impl Debug for ValidatedAllocations
impl Eq for ValidatedAllocations
Source§impl PartialEq for ValidatedAllocations
impl PartialEq for ValidatedAllocations
impl StructuralPartialEq for ValidatedAllocations
Auto Trait Implementations§
impl Freeze for ValidatedAllocations
impl RefUnwindSafe for ValidatedAllocations
impl Send for ValidatedAllocations
impl Sync for ValidatedAllocations
impl Unpin for ValidatedAllocations
impl UnsafeUnpin for ValidatedAllocations
impl UnwindSafe for ValidatedAllocations
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