pub enum StoreStorage {
Stable(StoreStableMemoryConfig),
}Expand description
Storage configuration owned by one schema store declaration.
0.167 implements only stable storage. Future storage forms should add new variants here rather than teaching stable-only memory ID fields new meaning.
Variants§
Stable(StoreStableMemoryConfig)
Durable stable-memory store using one memory for data, one for indexes, and one for accepted schema metadata.
Implementations§
Source§impl StoreStorage
impl StoreStorage
Sourcepub const fn stable_memory_config(&self) -> &StoreStableMemoryConfig
pub const fn stable_memory_config(&self) -> &StoreStableMemoryConfig
Borrow the stable-memory configuration.
This is stable-only while StoreStorage has a single implemented
variant. Future storage forms should prefer explicit variant matching.
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