Skip to main content

on_cleanup

Function on_cleanup 

Source
pub unsafe extern "C" fn on_cleanup<T: LifecycleCallbacks>(
    ctx: *mut c_void,
) -> u8
Expand description

ยงSafety

ctx must be a *mut T that outlives the registration and is not aliased for the duration of the call (the executor spins single-threaded, so no concurrent &mut T exists).