Skip to main content

async_task_handler_t

Type Alias async_task_handler_t 

Source
pub type async_task_handler_t = Option<unsafe extern "C" fn(dispatcher: *mut async_dispatcher_t, task: *mut async_task_t, status: zx_status_t)>;
Expand description

Handles execution of a posted task.

The |status| is |ZX_OK| if the task’s deadline elapsed and the task should run. The |status| is |ZX_ERR_CANCELED| if the dispatcher was shut down before the task’s handler ran.

Aliased Type§

pub enum async_task_handler_t {
    None,
    Some(unsafe extern "C" fn(*mut async_dispatcher, *mut async_task, i32)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut async_dispatcher, *mut async_task, i32))

Some value of type T.