pub type HurrayReleaseCallback = Option<unsafe extern "C" fn(*mut c_void, *mut c_void)>;Expand description
Optional release callback invoked by hurray_buffer_destroy.
The first argument is the data pointer passed to hurray_buffer_from_ptr.
The second argument is the release_context pointer passed to the same
function. Both arguments carry the exact values provided at construction time.
Implementations MUST NOT call back into the Hurray C ABI from within this callback; doing so may cause deadlocks or use-after-free.
Aliased Type§
pub enum HurrayReleaseCallback {
None,
Some(unsafe extern "C" fn(*mut c_void, *mut c_void)),
}