script::dom::bindings::codegen::Bindings::PromiseRejectionEventBinding

Type Alias PromiseRejectionEventInit

Source
pub(crate) type PromiseRejectionEventInit = PromiseRejectionEventInit;

Aliased Type§

struct PromiseRejectionEventInit {
    pub parent: EventInit,
    pub promise: RootedTraceableBox<Heap<*mut JSObject>>,
    pub reason: RootedTraceableBox<Heap<Value>>,
}

Fields§

§parent: EventInit§promise: RootedTraceableBox<Heap<*mut JSObject>>§reason: RootedTraceableBox<Heap<Value>>

Implementations

Trait Implementations

Source§

impl ToJSValConvertible for PromiseRejectionEventInit

Source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandle<'_, Value>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

impl Traceable for PromiseRejectionEventInit

Source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.