pub unsafe extern "C" fn transport_set_shutdown_func(
    transport: *mut Transport, 
    shutdown_func: Option<ShutdownFunction>
)Expand description
Sets the transport shutdown hook.
This hook will receive a millisecond-resolution timeout.
It should return 0 on success in case all the pending envelopes have
been sent within the timeout, or 1 if the timeout was hit.