Skip to main content

async_wait_handler_t

Type Alias async_wait_handler_t 

Source
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§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut async_dispatcher, *mut async_wait, i32, *const zx_packet_signal_t))

Some value of type T.