pub trait PromiseRejectionEventMethods<D: DomTypes> {
    // Required methods
    fn Promise(&self, cx: SafeJSContext) -> NonNull<JSObject>;
    fn Reason(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: RootedTraceableBox<PromiseRejectionEventInit>,
    ) -> Result<Root<Dom<PromiseRejectionEvent>>, Error>;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§