pub struct StableMemoryAllocationMetadata { /* private fields */ }Expand description
Diagnostic schema metadata associated with a stable-memory allocation.
This metadata does not participate in durable allocation identity. The
durable identity remains memory_id + stable_key.
Implementations§
Source§impl StableMemoryAllocationMetadata
impl StableMemoryAllocationMetadata
Sourcepub const fn from_accepted_schema_contract(
schema_version: u32,
schema_fingerprint: String,
) -> Self
pub const fn from_accepted_schema_contract( schema_version: u32, schema_fingerprint: String, ) -> Self
Build allocation metadata from an accepted schema/catalog authority.
Sourcepub const fn absent() -> Self
pub const fn absent() -> Self
Build absent allocation metadata for allocations with no accepted schema/catalog authority.
Sourcepub const fn schema_version(&self) -> Option<u32>
pub const fn schema_version(&self) -> Option<u32>
Accepted schema/catalog version, when known.
Sourcepub const fn schema_fingerprint(&self) -> Option<&str>
pub const fn schema_fingerprint(&self) -> Option<&str>
Accepted schema/catalog fingerprint, when known.
Trait Implementations§
Source§impl Clone for StableMemoryAllocationMetadata
impl Clone for StableMemoryAllocationMetadata
Source§fn clone(&self) -> StableMemoryAllocationMetadata
fn clone(&self) -> StableMemoryAllocationMetadata
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 PartialEq for StableMemoryAllocationMetadata
impl PartialEq for StableMemoryAllocationMetadata
Source§fn eq(&self, other: &StableMemoryAllocationMetadata) -> bool
fn eq(&self, other: &StableMemoryAllocationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StableMemoryAllocationMetadata
impl StructuralPartialEq for StableMemoryAllocationMetadata
Auto Trait Implementations§
impl Freeze for StableMemoryAllocationMetadata
impl RefUnwindSafe for StableMemoryAllocationMetadata
impl Send for StableMemoryAllocationMetadata
impl Sync for StableMemoryAllocationMetadata
impl Unpin for StableMemoryAllocationMetadata
impl UnsafeUnpin for StableMemoryAllocationMetadata
impl UnwindSafe for StableMemoryAllocationMetadata
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