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