pub struct VStorage { /* private fields */ }Implementations
sourceimpl VStorage
impl VStorage
pub fn none() -> VStorage
pub fn new_remote(addr: &str) -> VStorage
pub fn new_tt(tt_id: 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) -> bool
pub fn get_individual_from_db(
&mut self,
storage: StorageId,
id: &str,
iraw: &mut Individual
) -> bool
pub fn get_value(&mut self, storage: StorageId, id: &str) -> Option<String>
pub fn get_raw_value(&mut self, storage: StorageId, id: &str) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn put_kv(&mut self, storage: StorageId, key: &str, val: &str) -> bool
pub fn put_kv_raw(
&mut self,
storage: StorageId,
key: &str,
val: Vec<u8>
) -> bool
pub fn remove(&mut self, storage: StorageId, key: &str) -> bool
pub fn count(&mut self, storage: StorageId) -> usize
Auto Trait Implementations
impl !RefUnwindSafe for VStorage
impl Send for VStorage
impl Sync for VStorage
impl Unpin for VStorage
impl !UnwindSafe for VStorage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more