Struct v_common::storage::lmdb_storage::LMDBStorage
source · 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_from_db( &mut self, storage: StorageId, uri: &str, iraw: &mut Individual, ) -> Result<(), ResultCode>
fn get_v( &mut self, storage: StorageId, key: &str, ) -> Result<Option<String>, ResultCode>
fn get_raw( &mut self, storage: StorageId, key: &str, ) -> Result<Option<Vec<u8>>, ResultCode>
fn put_kv( &mut self, storage: StorageId, key: &str, val: &str, ) -> Result<(), ResultCode>
fn put_kv_raw( &mut self, storage: StorageId, key: &str, val: Vec<u8>, ) -> Result<(), ResultCode>
fn remove(&mut self, storage: StorageId, key: &str) -> Result<(), ResultCode>
fn count(&mut self, storage: StorageId) -> Result<usize, ResultCode>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more