pub trait KVStore:
KVGet
+ Clone
+ Send
+ 'static {
type WriteBatch: WriteBatch;
type Snapshot<'a>: 'a + KVGet;
// Required methods
fn write(&mut self, wb: Self::WriteBatch);
fn clear(&mut self);
fn snapshot<'b>(&'b self) -> Self::Snapshot<'_>;
}
Required Associated Types§
type WriteBatch: WriteBatch
type Snapshot<'a>: 'a + KVGet
Required Methods§
fn write(&mut self, wb: Self::WriteBatch)
fn clear(&mut self)
fn snapshot<'b>(&'b self) -> Self::Snapshot<'_>
Object Safety§
This trait is not object safe.