Enum web_sys::PushPermissionState
source · pub enum PushPermissionState {
Granted,
Denied,
Prompt,
// some variants omitted
}
Variants§
Implementations§
source§impl PushPermissionState
impl PushPermissionState
pub fn from_js_value(obj: &JsValue) -> Option<PushPermissionState>
Trait Implementations§
source§impl Clone for PushPermissionState
impl Clone for PushPermissionState
source§fn clone(&self) -> PushPermissionState
fn clone(&self) -> PushPermissionState
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 PushPermissionState
impl Debug for PushPermissionState
source§impl From<PushPermissionState> for JsValue
impl From<PushPermissionState> for JsValue
source§fn from(obj: PushPermissionState) -> JsValue
fn from(obj: PushPermissionState) -> JsValue
Converts to this type from the input type.
source§impl FromWasmAbi for PushPermissionState
impl FromWasmAbi for PushPermissionState
source§impl IntoWasmAbi for PushPermissionState
impl IntoWasmAbi for PushPermissionState
source§impl PartialEq<PushPermissionState> for PushPermissionState
impl PartialEq<PushPermissionState> for PushPermissionState
source§fn eq(&self, other: &PushPermissionState) -> bool
fn eq(&self, other: &PushPermissionState) -> bool
impl Copy for PushPermissionState
impl StructuralPartialEq for PushPermissionState
Auto Trait Implementations§
impl RefUnwindSafe for PushPermissionState
impl Send for PushPermissionState
impl Sync for PushPermissionState
impl Unpin for PushPermissionState
impl UnwindSafe for PushPermissionState
Blanket Implementations§
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, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more