pub struct LmdbInstance { /* private fields */ }Implementations§
Source§impl LmdbInstance
impl LmdbInstance
pub fn new(path: &str, mode: StorageMode) -> Self
pub fn iter(&mut self) -> Box<dyn Iterator<Item = Vec<u8>>>
pub fn open(&mut self)
pub fn get<T: FromMdbValue>(&mut self, key: &str) -> Option<T>
pub fn count(&mut self) -> usize
pub fn remove(&mut self, key: &str) -> bool
pub fn put<T: ToMdbValue>(&mut self, key: &str, val: T) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LmdbInstance
impl RefUnwindSafe for LmdbInstance
impl Send for LmdbInstance
impl Sync for LmdbInstance
impl Unpin for LmdbInstance
impl UnsafeUnpin for LmdbInstance
impl UnwindSafe for LmdbInstance
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