pub struct MemEngine { /* private fields */ }Expand description
An in-memory, transactional key/value engine. Loses all data on drop.
Implementations§
Trait Implementations§
Source§impl KvEngine for MemEngine
impl KvEngine for MemEngine
type RTx<'a> = MemReadTx<'a>
type WTx<'a> = MemWriteTx<'a>
Source§fn begin_read(&self) -> StoreResult<Self::RTx<'_>>
fn begin_read(&self) -> StoreResult<Self::RTx<'_>>
Begin a read transaction (a consistent snapshot).
Source§fn begin_write(&self, durability: Durability) -> StoreResult<Self::WTx<'_>>
fn begin_write(&self, durability: Durability) -> StoreResult<Self::WTx<'_>>
Begin a single-writer transaction with the given durability.
Auto Trait Implementations§
impl !Freeze for MemEngine
impl RefUnwindSafe for MemEngine
impl Send for MemEngine
impl Sync for MemEngine
impl Unpin for MemEngine
impl UnsafeUnpin for MemEngine
impl UnwindSafe for MemEngine
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