pub type ErlNifResourceStop = Option<unsafe extern "C" fn(arg1: *mut ErlNifEnv, arg2: *mut c_void, arg3: ErlNifEvent, is_direct_call: c_int)>;