pub struct VStorage { /* private fields */ }Implementations§
source§impl VStorage
impl VStorage
pub fn is_empty(&self) -> bool
pub fn none() -> VStorage
pub fn new_remote(addr: &str) -> VStorage
pub fn new_tt(tt_uri: String, login: &str, pass: &str) -> VStorage
pub fn new_lmdb( db_path: &str, mode: StorageMode, max_read_counter_reopen: Option<u64>, ) -> VStorage
pub fn get_individual( &mut self, id: &str, iraw: &mut Individual, ) -> Result<(), ResultCode>
pub fn get_individual_from_db( &mut self, storage: StorageId, id: &str, iraw: &mut Individual, ) -> Result<(), ResultCode>
pub fn get_value( &mut self, storage: StorageId, id: &str, ) -> Result<Option<String>, ResultCode>
pub fn get_raw_value( &mut self, storage: StorageId, id: &str, ) -> Result<Option<Vec<u8>>, ResultCode>
pub fn put_kv( &mut self, storage: StorageId, key: &str, val: &str, ) -> Result<(), ResultCode>
pub fn put_kv_raw( &mut self, storage: StorageId, key: &str, val: Vec<u8>, ) -> Result<(), ResultCode>
pub fn remove( &mut self, storage: StorageId, key: &str, ) -> Result<(), ResultCode>
pub fn count(&mut self, storage: StorageId) -> Result<usize, ResultCode>
Auto Trait Implementations§
impl Freeze for VStorage
impl !RefUnwindSafe for VStorage
impl Send for VStorage
impl Sync for VStorage
impl Unpin for VStorage
impl !UnwindSafe for VStorage
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