pub struct MemoryDB { /* private fields */ }
Implementations§
Trait Implementations§
source§impl DB for MemoryDB
impl DB for MemoryDB
fn get(&self, key: &[u8]) -> Result<Option<Vec<u8>>, Error>
source§fn insert(&self, key: Vec<u8>, value: Vec<u8>) -> Result<(), Error>
fn insert(&self, key: Vec<u8>, value: Vec<u8>) -> Result<(), Error>
Insert data into the cache.
fn contains(&self, key: &[u8]) -> Result<bool, Error>
impl CDB for MemoryDB
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryDB
impl Send for MemoryDB
impl Sync for MemoryDB
impl Unpin for MemoryDB
impl !UnwindSafe for MemoryDB
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