Skip to main content

JobFunc

Type Alias JobFunc 

Source
pub type JobFunc = Option<unsafe extern "C" fn(*mut JsContext, c_int, *const JsValue) -> JsValue>;
Expand description

JSJobFunc: a job the host enqueued with JS_EnqueueJob.

Aliased Type§

pub enum JobFunc {
    None,
    Some(unsafe extern "C" fn(*mut JsContext, i32, *const JsValue) -> JsValue),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut JsContext, i32, *const JsValue) -> JsValue)

Some value of type T.