Struct async_filedb::FileDb
source · pub struct FileDb { /* private fields */ }
Implementations§
source§impl FileDb
impl FileDb
pub async fn get(&self, key: Key) -> Option<Value>
pub async fn get_all(&self) -> HashMap<Key, Value>
pub async fn get_with_prefix(&self, prefix: Key) -> HashMap<Key, Value>
pub async fn set(&self, key: Key, value: Value)
pub async fn set_many(&self, data: HashMap<Key, Value>)
pub async fn delete(&self, key: Key)
pub async fn delete_all(&self)
pub async fn delete_with_prefix(&self, prefix: Key)
Auto Trait Implementations§
impl !RefUnwindSafe for FileDb
impl Send for FileDb
impl Sync for FileDb
impl Unpin for FileDb
impl UnwindSafe for FileDb
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