pub enum StoreStorage {
Stable(StoreStableMemoryConfig),
Heap(StoreHeapConfig),
Journaled(StoreJournaledMemoryConfig),
}Expand description
Storage configuration owned by one schema store declaration.
0.174 admits stable, heap, and journaled cached-stable 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.
Journaled(StoreJournaledMemoryConfig)
Journaled cached-stable store using canonical stable data/index/schema memories plus a durable journal-tail memory.
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 journaled_memory_config(
&self,
) -> Option<&StoreJournaledMemoryConfig>
pub const fn journaled_memory_config( &self, ) -> Option<&StoreJournaledMemoryConfig>
Borrow the journaled cached-stable configuration.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more