Struct gloo_storage::LocalStorage
source · [−]pub struct LocalStorage;
Expand description
Provides API to deal with localStorage
Trait Implementations
sourceimpl Debug for LocalStorage
impl Debug for LocalStorage
sourceimpl Storage for LocalStorage
impl Storage for LocalStorage
sourcefn raw() -> Storage
fn raw() -> Storage
Get the raw web_sys::Storage
instance
sourcefn get<T>(key: impl AsRef<str>) -> Result<T> where
T: for<'de> Deserialize<'de>,
fn get<T>(key: impl AsRef<str>) -> Result<T> where
T: for<'de> Deserialize<'de>,
Get the value for the specified key
sourcefn get_all<T>() -> Result<T> where
T: for<'a> Deserialize<'a>,
fn get_all<T>() -> Result<T> where
T: for<'a> Deserialize<'a>,
Get all the stored keys and their values
Auto Trait Implementations
impl RefUnwindSafe for LocalStorage
impl Send for LocalStorage
impl Sync for LocalStorage
impl Unpin for LocalStorage
impl UnwindSafe for LocalStorage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more