Trait script::dom::bindings::codegen::Bindings::PromiseRejectionEventBinding::PromiseRejectionEvent_Binding::PromiseRejectionEventMethods
source · pub trait PromiseRejectionEventMethods {
// 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§
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>
Object Safety§
This trait is not object safe.