pub struct LMDBStorage { /* private fields */ }Implementations§
Source§impl LMDBStorage
impl LMDBStorage
pub fn new( db_path: &str, mode: StorageMode, max_read_counter_reopen: Option<u64>, ) -> LMDBStorage
pub fn open(&mut self, storage: StorageId)
Trait Implementations§
Source§impl Storage for LMDBStorage
impl Storage for LMDBStorage
fn get_individual( &mut self, storage: StorageId, uri: &str, iraw: &mut Individual, ) -> StorageResult<()>
fn get_value(&mut self, storage: StorageId, key: &str) -> StorageResult<String>
fn get_raw_value( &mut self, storage: StorageId, key: &str, ) -> StorageResult<Vec<u8>>
fn put_value( &mut self, storage: StorageId, key: &str, val: &str, ) -> StorageResult<()>
fn put_raw_value( &mut self, storage: StorageId, key: &str, val: Vec<u8>, ) -> StorageResult<()>
fn remove_value(&mut self, storage: StorageId, key: &str) -> StorageResult<()>
fn count(&mut self, storage: StorageId) -> StorageResult<usize>
Source§fn get_individual_from_db(
&mut self,
storage: StorageId,
id: &str,
iraw: &mut Individual,
) -> StorageResult<()>
fn get_individual_from_db( &mut self, storage: StorageId, id: &str, iraw: &mut Individual, ) -> StorageResult<()>
👎Deprecated since 0.1.0: Use get_individual instead
Source§fn get_v(&mut self, storage: StorageId, key: &str) -> Option<String>
fn get_v(&mut self, storage: StorageId, key: &str) -> Option<String>
👎Deprecated since 0.1.0: Use get_value instead
Source§fn get_raw(&mut self, storage: StorageId, key: &str) -> Vec<u8> ⓘ
fn get_raw(&mut self, storage: StorageId, key: &str) -> Vec<u8> ⓘ
👎Deprecated since 0.1.0: Use get_raw_value instead
Source§fn put_kv(&mut self, storage: StorageId, key: &str, val: &str) -> bool
fn put_kv(&mut self, storage: StorageId, key: &str, val: &str) -> bool
👎Deprecated since 0.1.0: Use put_value instead
Auto Trait Implementations§
impl Freeze for LMDBStorage
impl RefUnwindSafe for LMDBStorage
impl Send for LMDBStorage
impl Sync for LMDBStorage
impl Unpin for LMDBStorage
impl UnwindSafe for LMDBStorage
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