[][src]Struct web_sys::PromiseRejectionEventInit

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

The PromiseRejectionEventInit dictionary

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

Methods

impl PromiseRejectionEventInit[src]

pub fn new(promise: &Promise) -> PromiseRejectionEventInit[src]

Construct a new PromiseRejectionEventInit

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

pub fn bubbles(&mut self, val: bool) -> &mut Self[src]

Configure the bubbles field of this object

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

pub fn cancelable(&mut self, val: bool) -> &mut Self[src]

Configure the cancelable field of this object

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

pub fn composed(&mut self, val: bool) -> &mut Self[src]

Configure the composed field of this object

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

pub fn promise(&mut self, val: &Promise) -> &mut Self[src]

Configure the promise field of this object

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

pub fn reason(&mut self, val: &JsValue) -> &mut Self[src]

Configure the reason field of this object

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

Trait Implementations

impl AsRef<JsValue> for PromiseRejectionEventInit[src]

impl Clone for PromiseRejectionEventInit[src]

impl Debug for PromiseRejectionEventInit[src]

impl From<PromiseRejectionEventInit> for JsValue[src]

impl FromWasmAbi for PromiseRejectionEventInit[src]

type Abi = <Object as FromWasmAbi>::Abi

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

impl IntoWasmAbi for PromiseRejectionEventInit[src]

type Abi = <Object as IntoWasmAbi>::Abi

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

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

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

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

impl JsCast for PromiseRejectionEventInit[src]

impl OptionFromWasmAbi for PromiseRejectionEventInit[src]

impl OptionIntoWasmAbi for PromiseRejectionEventInit[src]

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

impl RefFromWasmAbi for PromiseRejectionEventInit[src]

type Abi = <Object as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<PromiseRejectionEventInit>

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 WasmDescribe for PromiseRejectionEventInit[src]

Auto Trait Implementations

impl RefUnwindSafe for PromiseRejectionEventInit

impl !Send for PromiseRejectionEventInit

impl !Sync for PromiseRejectionEventInit

impl Unpin for PromiseRejectionEventInit

impl UnwindSafe for PromiseRejectionEventInit

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.