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.
Variants§
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 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
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