IOAsyncCallback0

Type Alias IOAsyncCallback0 

Source
pub type IOAsyncCallback0 = Option<unsafe extern "C-unwind" fn(*mut c_void, IOReturn)>;
Expand description

standard callback function for asynchronous I/O requests with no extra arguments beyond a refcon and result code.

Parameter refcon: The refcon passed into the original I/O request

Parameter result: The result of the I/O operation

See also Apple’s documentation

Aliased Type§

pub enum IOAsyncCallback0 {
    None,
    Some(unsafe extern "C-unwind" fn(*mut c_void, i32)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C-unwind" fn(*mut c_void, i32))

Some value of type T.