Type Alias libmimalloc_sys::mi_error_fun

source ·
pub type mi_error_fun = Option<unsafe extern "C" fn(code: c_int, arg: *mut c_void)>;
Expand description

Type of error callback functions. Must be thread-safe.

  • err: Error code (see mi_register_error for a list).
  • arg: Argument that was passed at registration to hold extra state.

See mi_register_error

Aliased Type§

enum mi_error_fun {
    None,
    Some(unsafe extern "C" fn(_: i32, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: i32, _: *mut c_void))

Some value of type T.