pub struct TTStorage { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Storage for TTStorage
impl Storage for TTStorage
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 TTStorage
impl !RefUnwindSafe for TTStorage
impl Send for TTStorage
impl Sync for TTStorage
impl Unpin for TTStorage
impl UnsafeUnpin for TTStorage
impl !UnwindSafe for TTStorage
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