IOHIDValueCallback

Type Alias IOHIDValueCallback 

Source
pub type IOHIDValueCallback = Option<unsafe extern "C-unwind" fn(*mut c_void, IOReturn, *mut c_void, NonNull<IOHIDValue>)>;
Available on crate feature hid only.
Expand description

Type and arguments of callout C function that is used when an element value completion routine is called.

Parameter context: void * pointer to more data.

Parameter result: Completion result of desired operation.

Parameter sender: Interface instance sending the completion routine.

Parameter value: IOHIDValueRef containing the returned element value.

See also Apple’s documentation

Aliased Type§

pub enum IOHIDValueCallback {
    None,
    Some(unsafe extern "C-unwind" fn(*mut c_void, i32, *mut c_void, NonNull<IOHIDValue>)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C-unwind" fn(*mut c_void, i32, *mut c_void, NonNull<IOHIDValue>))

Some value of type T.