neon::sys::bindings

Type Alias Callback

Source
pub type Callback = Option<unsafe extern "C" fn(env: Env, info: CallbackInfo) -> Value>;
Available on crate features sys and napi-1 only.
Expand description

Aliased Type§

enum Callback {
    None,
    Some(unsafe extern "C" fn(_: *mut Env__, _: *mut CallbackInfo__) -> *mut Value__),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut Env__, _: *mut CallbackInfo__) -> *mut Value__)

Some value of type T.