pub struct FileStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl PersistentStore for FileStore
impl PersistentStore for FileStore
Source§async fn save(&mut self, key: &str, value: &str) -> Result<(), StoreError>
async fn save(&mut self, key: &str, value: &str) -> Result<(), StoreError>
save a key-value pair to the store.
Source§async fn load(&self, key: &str) -> Result<Option<String>, StoreError>
async fn load(&self, key: &str) -> Result<Option<String>, StoreError>
load a value from the store by key. If the key does not exist, None is returned.
Auto Trait Implementations§
impl Forget for FileStore
impl Freeze for FileStore
impl Move for FileStore
impl RefUnwindSafe for FileStore
impl Send for FileStore
impl Sync for FileStore
impl Unpin for FileStore
impl UnsafeUnpin for FileStore
impl UnwindSafe for FileStore
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