Type Alias napi_sys::napi_callback

source ·
pub type napi_callback = Option<unsafe extern "C" fn(env: napi_env, info: napi_callback_info) -> napi_value>;

Aliased Type§

enum napi_callback {
    None,
    Some(unsafe extern "C" fn(_: *mut napi_env__, _: *mut napi_callback_info__) -> *mut napi_value__),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut napi_env__, _: *mut napi_callback_info__) -> *mut napi_value__)

Some value of type T.