pub type async_wait_handler_t = Option<unsafe extern "C" fn(dispatcher: *mut async_dispatcher_t, wait: *mut async_wait_t, status: zx_status_t, signal: *const zx_packet_signal_t)>;Expand description
Handles completion of asynchronous wait operations.
The |status| is |ZX_OK| if the wait was satisfied and |signal| is non-null. The |status| is |ZX_ERR_CANCELED| if the dispatcher was shut down before the task’s handler ran or the task was canceled.
Aliased Type§
pub enum async_wait_handler_t {
None,
Some(unsafe extern "C" fn(*mut async_dispatcher, *mut async_wait, i32, *const zx_packet_signal_t)),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut async_dispatcher, *mut async_wait, i32, *const zx_packet_signal_t))
Some value of type T.