pub type ShutdownFunction = extern "C" fn(timeout: u64, state: *mut c_void) -> c_int;
Type of the callback for shutting down a custom transport