Struct gloo_storage::SessionStorage
source · [−]pub struct SessionStorage;
Expand description
Provides API to deal with sessionStorage
Trait Implementations
sourceimpl Debug for SessionStorage
impl Debug for SessionStorage
sourceimpl Storage for SessionStorage
impl Storage for SessionStorage
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 SessionStorage
impl Send for SessionStorage
impl Sync for SessionStorage
impl Unpin for SessionStorage
impl UnwindSafe for SessionStorage
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