Skip to main content

fdf_channel_read_handler_t

Type Alias fdf_channel_read_handler_t 

Source
pub type fdf_channel_read_handler_t = Option<unsafe extern "C" fn(dispatcher: *mut fdf_dispatcher_t, read: *mut fdf_channel_read_t, status: zx_status_t)>;
Expand description

Handles execution of asynchronous read operations.

The |status| is |ZX_OK| if the channel is ready to be read. The |status| is |ZX_ERR_CANCELED| if the dispatcher was shut down before the read handler ran.

Aliased Type§

pub enum fdf_channel_read_handler_t {
    None,
    Some(unsafe extern "C" fn(*mut fdf_dispatcher, *mut fdf_channel_read, i32)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut fdf_dispatcher, *mut fdf_channel_read, i32))

Some value of type T.