pub struct RedbEngine { /* private fields */ }Expand description
A durable, transactional key/value engine backed by a single redb file.
Implementations§
Trait Implementations§
Source§impl KvEngine for RedbEngine
impl KvEngine for RedbEngine
type RTx<'a> = RedbReadTx
type WTx<'a> = RedbWriteTx
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 !RefUnwindSafe for RedbEngine
impl !UnwindSafe for RedbEngine
impl Freeze for RedbEngine
impl Send for RedbEngine
impl Sync for RedbEngine
impl Unpin for RedbEngine
impl UnsafeUnpin for RedbEngine
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