Trait PromiseRejectionEventMethods

Source
pub(crate) trait PromiseRejectionEventMethods<D>
where D: DomTypes,
{ // Required methods fn Promise(&self, cx: JSContext) -> NonNull<JSObject>; fn Reason(&self, cx: JSContext, retval: MutableHandle<'_, Value>); fn IsTrusted(&self) -> bool; fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, type_: DOMString, eventInitDict: RootedTraceableBox<PromiseRejectionEventInit>, ) -> Result<Root<Dom<<D as DomTypes>::PromiseRejectionEvent>>, Error>; }

Required Methods§

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§