IOServiceMatchingCallback

Type Alias IOServiceMatchingCallback 

Source
pub type IOServiceMatchingCallback = Option<unsafe extern "C-unwind" fn(*mut c_void, io_iterator_t)>;
Available on crate feature libc only.
Expand description

Callback function to be notified of IOService publication.

Parameter refcon: The refcon passed when the notification was installed.

Parameter iterator: The notification iterator which now has new objects.

See also Apple’s documentation

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.