[][src]Struct web_sys::PushManager

#[repr(transparent)]
pub struct PushManager { /* fields omitted */ }

The PushManager object

MDN Documentation

This API requires the following crate features to be activated: PushManager

Methods

impl PushManager[src]

pub fn get_subscription(&self) -> Result<Promise, JsValue>[src]

The getSubscription() method

MDN Documentation

This API requires the following crate features to be activated: PushManager

impl PushManager[src]

pub fn permission_state(&self) -> Result<Promise, JsValue>[src]

The permissionState() method

MDN Documentation

This API requires the following crate features to be activated: PushManager

impl PushManager[src]

pub fn permission_state_with_options(
    &self,
    options: &PushSubscriptionOptionsInit
) -> Result<Promise, JsValue>
[src]

The permissionState() method

MDN Documentation

This API requires the following crate features to be activated: PushManager, PushSubscriptionOptionsInit

impl PushManager[src]

pub fn subscribe(&self) -> Result<Promise, JsValue>[src]

The subscribe() method

MDN Documentation

This API requires the following crate features to be activated: PushManager

impl PushManager[src]

pub fn subscribe_with_options(
    &self,
    options: &PushSubscriptionOptionsInit
) -> Result<Promise, JsValue>
[src]

The subscribe() method

MDN Documentation

This API requires the following crate features to be activated: PushManager, PushSubscriptionOptionsInit

Trait Implementations

impl AsRef<JsValue> for PushManager[src]

impl AsRef<Object> for PushManager[src]

impl AsRef<PushManager> for PushManager[src]

impl Clone for PushManager[src]

impl Debug for PushManager[src]

impl Deref for PushManager[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for PushManager[src]

impl From<JsValue> for PushManager[src]

impl From<PushManager> for JsValue[src]

impl From<PushManager> for Object[src]

impl FromWasmAbi for PushManager[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for PushManager[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a PushManager[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for PushManager[src]

impl OptionFromWasmAbi for PushManager[src]

impl OptionIntoWasmAbi for PushManager[src]

impl<'a> OptionIntoWasmAbi for &'a PushManager[src]

impl PartialEq<PushManager> for PushManager[src]

impl RefFromWasmAbi for PushManager[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<PushManager>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for PushManager[src]

impl StructuralPartialEq for PushManager[src]

impl WasmDescribe for PushManager[src]

Auto Trait Implementations

impl RefUnwindSafe for PushManager

impl !Send for PushManager

impl !Sync for PushManager

impl Unpin for PushManager

impl UnwindSafe for PushManager

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.