pub enum StoreStorage {
Stable(StoreStableMemoryConfig),
Heap(StoreHeapConfig),
}Expand description
Storage configuration owned by one schema store declaration.
0.169 admits stable and heap storage as distinct store storage modes. Stable-only memory ID fields must not acquire heap meaning.
Variants§
Stable(StoreStableMemoryConfig)
Durable stable-memory store using one memory for data, one for indexes, and one for accepted schema metadata.
Heap(StoreHeapConfig)
Volatile heap store with no stable allocation identity.
Implementations§
Source§impl StoreStorage
impl StoreStorage
Sourcepub const fn stable_memory_config(&self) -> Option<&StoreStableMemoryConfig>
pub const fn stable_memory_config(&self) -> Option<&StoreStableMemoryConfig>
Borrow the stable-memory configuration.
Future storage forms return None; callers that require stable memory
must fail closed or remain explicitly stable-only.
Sourcepub const fn storage_capabilities(&self) -> StoreStorageCapabilities
pub const fn storage_capabilities(&self) -> StoreStorageCapabilities
Return the capability descriptor derived from this storage mode.
Trait Implementations§
Source§impl Clone for StoreStorage
impl Clone for StoreStorage
Source§fn clone(&self) -> StoreStorage
fn clone(&self) -> StoreStorage
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 StoreStorage
impl Debug for StoreStorage
Auto Trait Implementations§
impl Freeze for StoreStorage
impl RefUnwindSafe for StoreStorage
impl Send for StoreStorage
impl Sync for StoreStorage
impl Unpin for StoreStorage
impl UnsafeUnpin for StoreStorage
impl UnwindSafe for StoreStorage
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