Enum web_sys::StorageType
source · pub enum StorageType {
Persistent = 0,
Temporary = 1,
Default = 2,
// some variants omitted
}
Expand description
The StorageType
enum.
This API requires the following crate features to be activated: StorageType
Variants§
Implementations§
source§impl StorageType
impl StorageType
pub fn from_js_value(obj: &JsValue) -> Option<StorageType>
Trait Implementations§
source§impl Clone for StorageType
impl Clone for StorageType
source§fn clone(&self) -> StorageType
fn clone(&self) -> StorageType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StorageType
impl Debug for StorageType
source§impl From<StorageType> for JsValue
impl From<StorageType> for JsValue
source§fn from(obj: StorageType) -> JsValue
fn from(obj: StorageType) -> JsValue
Converts to this type from the input type.
source§impl FromWasmAbi for StorageType
impl FromWasmAbi for StorageType
source§impl IntoWasmAbi for StorageType
impl IntoWasmAbi for StorageType
source§impl OptionFromWasmAbi for StorageType
impl OptionFromWasmAbi for StorageType
source§impl OptionIntoWasmAbi for StorageType
impl OptionIntoWasmAbi for StorageType
source§impl PartialEq for StorageType
impl PartialEq for StorageType
source§fn eq(&self, other: &StorageType) -> bool
fn eq(&self, other: &StorageType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StorageType
impl Eq for StorageType
impl StructuralEq for StorageType
impl StructuralPartialEq for StorageType
Auto Trait Implementations§
impl RefUnwindSafe for StorageType
impl Send for StorageType
impl Sync for StorageType
impl Unpin for StorageType
impl UnwindSafe for StorageType
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
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.