pub struct DataStore { /* private fields */ }Expand description
DataStore
Thin persistence wrapper over one journaled or heap BTreeMap.
Invariant: callers provide already-validated RawDataStoreKey and canonical row bytes.
This type intentionally does not enforce commit-phase ordering.
Implementations§
Source§impl DataStore
impl DataStore
Sourcepub fn init_journaled(memory: VirtualMemory<DefaultMemoryImpl>) -> Self
pub fn init_journaled(memory: VirtualMemory<DefaultMemoryImpl>) -> Self
Initialize a journaled cached-stable data store.
Normal writes update only the live projection. The canonical stable map is the future fold target and is not mutated by this wrapper’s write methods.
Auto Trait Implementations§
impl !Freeze for DataStore
impl !RefUnwindSafe for DataStore
impl !Send for DataStore
impl !Sync for DataStore
impl !UnwindSafe for DataStore
impl Unpin for DataStore
impl UnsafeUnpin for DataStore
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