pub struct AllocationRecord { /* private fields */ }Expand description
AllocationRecord
Durable ownership, lifecycle state and latest schema metadata for one stable key. Retaining this record prevents slot reuse after omission or retirement. It is metadata, not a live memory handle or an upgrade audit log.
Implementations§
Source§impl AllocationRecord
impl AllocationRecord
Sourcepub const fn stable_key(&self) -> &StableKey
pub const fn stable_key(&self) -> &StableKey
Return the permanent store identity.
Sourcepub const fn slot(&self) -> &MemoryManagerSlot
pub const fn slot(&self) -> &MemoryManagerSlot
Return its permanently claimed memory ID.
Sourcepub const fn state(&self) -> AllocationState
pub const fn state(&self) -> AllocationState
Return the current lifecycle state.
Sourcepub const fn schema(&self) -> &SchemaMetadata
pub const fn schema(&self) -> &SchemaMetadata
Borrow the latest declared schema metadata; no schema history is kept.
Trait Implementations§
Source§impl Clone for AllocationRecord
impl Clone for AllocationRecord
Source§impl Debug for AllocationRecord
impl Debug for AllocationRecord
Source§impl<'de> Deserialize<'de> for AllocationRecord
impl<'de> Deserialize<'de> for AllocationRecord
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
impl Eq for AllocationRecord
Source§impl PartialEq for AllocationRecord
impl PartialEq for AllocationRecord
Source§impl Serialize for AllocationRecord
impl Serialize for AllocationRecord
impl StructuralPartialEq for AllocationRecord
Auto Trait Implementations§
impl Freeze for AllocationRecord
impl RefUnwindSafe for AllocationRecord
impl Send for AllocationRecord
impl Sync for AllocationRecord
impl Unpin for AllocationRecord
impl UnsafeUnpin for AllocationRecord
impl UnwindSafe for AllocationRecord
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