pub struct StorageROClient {
pub soc: Socket,
pub addr: String,
pub is_ready: bool,
}Fields§
§soc: Socket§addr: String§is_ready: boolImplementations§
Source§impl StorageROClient
impl StorageROClient
pub fn new(addr: &str) -> Self
pub fn connect(&mut self) -> bool
pub fn get_individual_from_db( &mut self, db_id: StorageId, id: &str, iraw: &mut Individual, ) -> StorageResult<()>
pub fn count(&mut self, _storage: StorageId) -> StorageResult<usize>
Trait Implementations§
Source§impl Default for StorageROClient
impl Default for StorageROClient
Source§impl Storage for StorageROClient
impl Storage for StorageROClient
fn get_individual( &mut self, storage: StorageId, id: &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 StorageROClient
impl RefUnwindSafe for StorageROClient
impl Send for StorageROClient
impl Sync for StorageROClient
impl Unpin for StorageROClient
impl UnwindSafe for StorageROClient
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