Function sentry_contrib_native_sys::transport_set_shutdown_func[][src]

pub unsafe extern "C" fn transport_set_shutdown_func(
    transport: *mut Transport,
    shutdown_func: Option<ShutdownFunction>
)

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.