pub struct IOHIDDeviceInterface122 {Show 21 fields
pub QueryInterface: Option<unsafe extern "C-unwind" fn(*mut c_void, REFIID, *mut LPVOID) -> HRESULT>,
pub AddRef: Option<unsafe extern "C-unwind" fn(*mut c_void) -> ULONG>,
pub Release: Option<unsafe extern "C-unwind" fn(*mut c_void) -> ULONG>,
pub createAsyncEventSource: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut *mut CFRunLoopSource) -> IOReturn>,
pub getAsyncEventSource: Option<unsafe extern "C-unwind" fn(*mut c_void) -> *mut CFRunLoopSource>,
pub createAsyncPort: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut mach_port_t) -> IOReturn>,
pub getAsyncPort: Option<unsafe extern "C-unwind" fn(*mut c_void) -> mach_port_t>,
pub open: Option<unsafe extern "C-unwind" fn(*mut c_void, IOOptionBits) -> IOReturn>,
pub close: Option<unsafe extern "C-unwind" fn(*mut c_void) -> IOReturn>,
pub setRemovalCallback: Option<unsafe extern "C-unwind" fn(*mut c_void, IOHIDCallbackFunction, *mut c_void, *mut c_void) -> IOReturn>,
pub getElementValue: Option<unsafe extern "C-unwind" fn(*mut c_void, IOHIDElementCookie, *mut IOHIDEventStruct) -> IOReturn>,
pub setElementValue: Option<unsafe extern "C-unwind" fn(*mut c_void, IOHIDElementCookie, *mut IOHIDEventStruct, u32, IOHIDElementCallbackFunction, *mut c_void, *mut c_void) -> IOReturn>,
pub queryElementValue: Option<unsafe extern "C-unwind" fn(*mut c_void, IOHIDElementCookie, *mut IOHIDEventStruct, u32, IOHIDElementCallbackFunction, *mut c_void, *mut c_void) -> IOReturn>,
pub startAllQueues: Option<unsafe extern "C-unwind" fn(*mut c_void) -> IOReturn>,
pub stopAllQueues: Option<unsafe extern "C-unwind" fn(*mut c_void) -> IOReturn>,
pub allocQueue: Option<unsafe extern "C-unwind" fn(*mut c_void) -> *mut *mut IOHIDQueueInterface>,
pub allocOutputTransaction: Option<unsafe extern "C-unwind" fn(*mut c_void) -> *mut *mut IOHIDOutputTransactionInterface>,
pub setReport: Option<unsafe extern "C-unwind" fn(*mut c_void, IOHIDReportType, u32, *mut c_void, u32, u32, IOHIDReportCallbackFunction, *mut c_void, *mut c_void) -> IOReturn>,
pub getReport: Option<unsafe extern "C-unwind" fn(*mut c_void, IOHIDReportType, u32, *mut c_void, *mut u32, u32, IOHIDReportCallbackFunction, *mut c_void, *mut c_void) -> IOReturn>,
pub copyMatchingElements: Option<unsafe extern "C-unwind" fn(*mut c_void, *const CFDictionary, *mut *const CFArray) -> IOReturn>,
pub setInterruptReportHandlerCallback: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut c_void, u32, IOHIDReportCallbackFunction, *mut c_void, *mut c_void) -> IOReturn>,
/* private fields */
}Available on crate features
hid and libc only.Expand description
Fields§
§QueryInterface: Option<unsafe extern "C-unwind" fn(*mut c_void, REFIID, *mut LPVOID) -> HRESULT>§AddRef: Option<unsafe extern "C-unwind" fn(*mut c_void) -> ULONG>§Release: Option<unsafe extern "C-unwind" fn(*mut c_void) -> ULONG>§createAsyncEventSource: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut *mut CFRunLoopSource) -> IOReturn>§getAsyncEventSource: Option<unsafe extern "C-unwind" fn(*mut c_void) -> *mut CFRunLoopSource>§createAsyncPort: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut mach_port_t) -> IOReturn>§getAsyncPort: Option<unsafe extern "C-unwind" fn(*mut c_void) -> mach_port_t>§open: Option<unsafe extern "C-unwind" fn(*mut c_void, IOOptionBits) -> IOReturn>§close: Option<unsafe extern "C-unwind" fn(*mut c_void) -> IOReturn>§setRemovalCallback: Option<unsafe extern "C-unwind" fn(*mut c_void, IOHIDCallbackFunction, *mut c_void, *mut c_void) -> IOReturn>§getElementValue: Option<unsafe extern "C-unwind" fn(*mut c_void, IOHIDElementCookie, *mut IOHIDEventStruct) -> IOReturn>§setElementValue: Option<unsafe extern "C-unwind" fn(*mut c_void, IOHIDElementCookie, *mut IOHIDEventStruct, u32, IOHIDElementCallbackFunction, *mut c_void, *mut c_void) -> IOReturn>§queryElementValue: Option<unsafe extern "C-unwind" fn(*mut c_void, IOHIDElementCookie, *mut IOHIDEventStruct, u32, IOHIDElementCallbackFunction, *mut c_void, *mut c_void) -> IOReturn>§startAllQueues: Option<unsafe extern "C-unwind" fn(*mut c_void) -> IOReturn>§stopAllQueues: Option<unsafe extern "C-unwind" fn(*mut c_void) -> IOReturn>§allocQueue: Option<unsafe extern "C-unwind" fn(*mut c_void) -> *mut *mut IOHIDQueueInterface>§allocOutputTransaction: Option<unsafe extern "C-unwind" fn(*mut c_void) -> *mut *mut IOHIDOutputTransactionInterface>§setReport: Option<unsafe extern "C-unwind" fn(*mut c_void, IOHIDReportType, u32, *mut c_void, u32, u32, IOHIDReportCallbackFunction, *mut c_void, *mut c_void) -> IOReturn>§getReport: Option<unsafe extern "C-unwind" fn(*mut c_void, IOHIDReportType, u32, *mut c_void, *mut u32, u32, IOHIDReportCallbackFunction, *mut c_void, *mut c_void) -> IOReturn>§copyMatchingElements: Option<unsafe extern "C-unwind" fn(*mut c_void, *const CFDictionary, *mut *const CFArray) -> IOReturn>§setInterruptReportHandlerCallback: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut c_void, u32, IOHIDReportCallbackFunction, *mut c_void, *mut c_void) -> IOReturn>Trait Implementations§
Source§impl Clone for IOHIDDeviceInterface122
impl Clone for IOHIDDeviceInterface122
Source§fn clone(&self) -> IOHIDDeviceInterface122
fn clone(&self) -> IOHIDDeviceInterface122
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IOHIDDeviceInterface122
impl Debug for IOHIDDeviceInterface122
Source§impl Encode for IOHIDDeviceInterface122
Available on crate feature objc2 only.
impl Encode for IOHIDDeviceInterface122
Available on crate feature
objc2 only.Source§impl PartialEq for IOHIDDeviceInterface122
impl PartialEq for IOHIDDeviceInterface122
Source§impl RefEncode for IOHIDDeviceInterface122
Available on crate feature objc2 only.
impl RefEncode for IOHIDDeviceInterface122
Available on crate feature
objc2 only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for IOHIDDeviceInterface122
impl StructuralPartialEq for IOHIDDeviceInterface122
Auto Trait Implementations§
impl Freeze for IOHIDDeviceInterface122
impl RefUnwindSafe for IOHIDDeviceInterface122
impl !Send for IOHIDDeviceInterface122
impl !Sync for IOHIDDeviceInterface122
impl Unpin for IOHIDDeviceInterface122
impl UnwindSafe for IOHIDDeviceInterface122
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.