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: RootedTraceableBox<PromiseRejectionEventInit>,
) -> Fallible<DomRoot<D::PromiseRejectionEvent>>;
}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: RootedTraceableBox<PromiseRejectionEventInit>, ) -> Fallible<DomRoot<D::PromiseRejectionEvent>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".