pub struct StorageStore { /* private fields */ }Expand description
Cross-platform key-value local storage abstraction synchronized across native and web hosts.
Implementations§
Source§impl StorageStore
Key-value storage operations for StorageStore.
impl StorageStore
Key-value storage operations for StorageStore.
Sourcepub fn set_item(&mut self, key: String, value: String)
pub fn set_item(&mut self, key: String, value: String)
Inserts or replaces key with value.
§Arguments
&Self- Mutable storage store.String- Entry key.String- Entry value.
Sourcepub fn remove_item(&mut self, key: &str) -> Option<String>
pub fn remove_item(&mut self, key: &str) -> Option<String>
Trait Implementations§
Source§impl Clone for StorageStore
impl Clone for StorageStore
Source§impl Debug for StorageStore
impl Debug for StorageStore
Auto Trait Implementations§
impl Forget for StorageStore
impl Freeze for StorageStore
impl Move for StorageStore
impl RefUnwindSafe for StorageStore
impl Send for StorageStore
impl Sync for StorageStore
impl Unpin for StorageStore
impl UnsafeUnpin for StorageStore
impl UnwindSafe for StorageStore
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