pub struct IOHIDDeviceInterface {Show 19 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>,
/* 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>Trait Implementations§
Source§impl Clone for IOHIDDeviceInterface
impl Clone for IOHIDDeviceInterface
Source§fn clone(&self) -> IOHIDDeviceInterface
fn clone(&self) -> IOHIDDeviceInterface
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 IOHIDDeviceInterface
impl Debug for IOHIDDeviceInterface
Source§impl Encode for IOHIDDeviceInterface
Available on crate feature objc2 only.
impl Encode for IOHIDDeviceInterface
Available on crate feature
objc2 only.Source§impl PartialEq for IOHIDDeviceInterface
impl PartialEq for IOHIDDeviceInterface
Source§impl RefEncode for IOHIDDeviceInterface
Available on crate feature objc2 only.
impl RefEncode for IOHIDDeviceInterface
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 IOHIDDeviceInterface
impl StructuralPartialEq for IOHIDDeviceInterface
Auto Trait Implementations§
impl Freeze for IOHIDDeviceInterface
impl RefUnwindSafe for IOHIDDeviceInterface
impl !Send for IOHIDDeviceInterface
impl !Sync for IOHIDDeviceInterface
impl Unpin for IOHIDDeviceInterface
impl UnwindSafe for IOHIDDeviceInterface
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.