pub struct ValidatedAllocations { /* private fields */ }Expand description
ValidatedAllocations
Allocation declarations accepted by policy and historical ledger validation.
This value is produced by crate::validate_allocations and is the bridge
between declaration validation and opening storage. It is not a durable
ledger record; staging commits it into the next generation before an
integration should expose memory handles.
Implementations§
Source§impl ValidatedAllocations
impl ValidatedAllocations
Sourcepub const fn generation(&self) -> u64
pub const fn generation(&self) -> u64
Return the committed generation that validated these allocations.
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
Source§impl<'de> Deserialize<'de> for ValidatedAllocations
impl<'de> Deserialize<'de> for ValidatedAllocations
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValidatedAllocations
impl PartialEq for ValidatedAllocations
Source§fn eq(&self, other: &ValidatedAllocations) -> bool
fn eq(&self, other: &ValidatedAllocations) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValidatedAllocations
impl Serialize for ValidatedAllocations
impl Eq 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