Type Alias mozjs_sys::jsapi::JS::PromiseRejectionTrackerCallback

source ·
pub type PromiseRejectionTrackerCallback = Option<unsafe extern "C" fn(cx: *mut JSContext, mutedErrors: bool, promise: HandleObject, state: PromiseRejectionHandlingState, data: *mut c_void)>;

Aliased Type§

enum PromiseRejectionTrackerCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut JSContext, _: bool, _: Handle<*mut JSObject>, _: PromiseRejectionHandlingState, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut JSContext, _: bool, _: Handle<*mut JSObject>, _: PromiseRejectionHandlingState, _: *mut c_void))

Some value of type T.