pub enum WebStorageKind {
Local,
Session,
}Expand description
Which storage area a WebStorage handle targets.
Variants§
Local
window.localStorage — persists across sessions for the origin.
Session
window.sessionStorage — cleared when the tab/context closes.
Trait Implementations§
Source§impl Clone for WebStorageKind
impl Clone for WebStorageKind
Source§fn clone(&self) -> WebStorageKind
fn clone(&self) -> WebStorageKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WebStorageKind
Source§impl Debug for WebStorageKind
impl Debug for WebStorageKind
impl Eq for WebStorageKind
Source§impl PartialEq for WebStorageKind
impl PartialEq for WebStorageKind
impl StructuralPartialEq for WebStorageKind
Auto Trait Implementations§
impl Freeze for WebStorageKind
impl RefUnwindSafe for WebStorageKind
impl Send for WebStorageKind
impl Sync for WebStorageKind
impl Unpin for WebStorageKind
impl UnsafeUnpin for WebStorageKind
impl UnwindSafe for WebStorageKind
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