Struct gloo_storage::LocalStorage
source · pub struct LocalStorage;
Expand description
Provides API to deal with localStorage
Trait Implementations§
source§impl Debug for LocalStorage
impl Debug for LocalStorage
source§impl Storage for LocalStorage
impl Storage for LocalStorage
source§fn raw() -> Storage
fn raw() -> Storage
Get the raw
web_sys::Storage
instancesource§fn 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
source§fn 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§
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