pub enum StoreStorage {
Heap(StoreHeapConfig),
Journaled(StoreJournaledMemoryConfig),
}Expand description
Storage configuration owned by one schema store declaration.
Store storage has two public modes: volatile heap storage and journaled cached-stable durable storage. Direct stable-map stores were hard-cut after the journaled mode became the durable path.
Use Journaled for user data that must survive upgrade/reinitialization.
Heap is live-only process state: it has no stable-memory allocation
identity, no commit-marker or journal-tail participation, and no recovery
path.
Variants§
Heap(StoreHeapConfig)
Volatile heap store with no stable allocation identity or recovery path.
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 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