IOAsyncCallback2

Type Alias IOAsyncCallback2 

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

standard callback function for asynchronous I/O requests with two 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

Parameter arg0: Extra argument

Parameter arg1: Extra argument

See also Apple’s documentation

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.