Skip to main content

PromiseRejectionEventMethods

pub trait PromiseRejectionEventMethods<D: DomTypes> {
    // Required methods
    fn Promise(&self, retval: MutableHandle<'_, *mut JSObject>);
    fn Reason(&self, retval: MutableHandle<'_, Value>);
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        cx: &mut JSContext,
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        type_: DOMString,
        eventInitDict: &PromiseRejectionEventInit,
    ) -> Fallible<DomRoot<D::PromiseRejectionEvent>>;
}

Required Methods§

Source

fn Promise(&self, retval: MutableHandle<'_, *mut JSObject>)

Source

fn Reason(&self, retval: MutableHandle<'_, Value>)

Source

fn IsTrusted(&self) -> bool

Source

fn Constructor( cx: &mut JSContext, global: &D::GlobalScope, proto: Option<HandleObject<'_>>, type_: DOMString, eventInitDict: &PromiseRejectionEventInit, ) -> Fallible<DomRoot<D::PromiseRejectionEvent>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§