Enum web_sys::StorageType
source · [−]pub enum StorageType {
Persistent,
Temporary,
Default,
// some variants omitted
}
Expand description
The StorageType
enum.
This API requires the following crate features to be activated: StorageType
Variants
Persistent
Temporary
Default
Implementations
sourceimpl StorageType
impl StorageType
pub fn from_js_value(obj: &JsValue) -> Option<StorageType>
Trait Implementations
sourceimpl Clone for StorageType
impl Clone for StorageType
sourcefn clone(&self) -> StorageType
fn clone(&self) -> StorageType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StorageType
impl Debug for StorageType
sourceimpl From<StorageType> for JsValue
impl From<StorageType> for JsValue
sourcefn from(obj: StorageType) -> JsValue
fn from(obj: StorageType) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for StorageType
impl FromWasmAbi for StorageType
sourceimpl IntoWasmAbi for StorageType
impl IntoWasmAbi for StorageType
sourceimpl OptionFromWasmAbi for StorageType
impl OptionFromWasmAbi for StorageType
sourceimpl OptionIntoWasmAbi for StorageType
impl OptionIntoWasmAbi for StorageType
sourceimpl PartialEq<StorageType> for StorageType
impl PartialEq<StorageType> for StorageType
sourceimpl WasmDescribe for StorageType
impl WasmDescribe for StorageType
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
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
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn 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
. Read more