Type Alias script::dom::bindings::import::module::jsapi::GCNurseryCollectionCallback

source ·
pub type GCNurseryCollectionCallback = Option<unsafe extern "C" fn(_: *mut JSContext, _: GCNurseryProgress, _: GCReason, _: *mut c_void)>;
Expand description

A nursery collection callback receives the progress of the nursery collection and the reason for the collection.

Aliased Type§

enum GCNurseryCollectionCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut JSContext, _: GCNurseryProgress, _: GCReason, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut JSContext, _: GCNurseryProgress, _: GCReason, _: *mut c_void))

Some value of type T.