pub unsafe extern "C" fn on_shutdown<T>(ctx: *mut c_void) -> u8where
T: LifecycleCallbacks,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).