IOAsyncCallback1

Type Alias IOAsyncCallback1 

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

standard callback function for asynchronous I/O requests with one extra argument beyond a refcon and result code. This is often a count of the number of bytes transferred

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

Parameter result: The result of the I/O operation

Parameter arg0: Extra argument

See also Apple’s documentation

Aliased Type§

pub enum IOAsyncCallback1 {
    None,
    Some(unsafe extern "C-unwind" fn(*mut c_void, i32, *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))

Some value of type T.