pub type IOHIDDeviceCallback = Option<unsafe extern "C-unwind" fn(*mut c_void, IOReturn, *mut c_void, NonNull<IOHIDDevice>)>;Available on crate feature
hid only.Expand description
Type and arguments of callout C function that is used when a device routine is called.
Parameter context: void * pointer to more data.
Parameter result: Completion result of desired operation.
Parameter device: IOHIDDeviceRef containing the sending device.
See also Apple’s documentation
Aliased Type§
pub enum IOHIDDeviceCallback {
None,
Some(unsafe extern "C-unwind" fn(*mut c_void, i32, *mut c_void, NonNull<IOHIDDevice>)),
}