Skip to main content

IOHIDDeviceDeviceInterface

Struct IOHIDDeviceDeviceInterface 

Source
#[repr(C)]
pub struct IOHIDDeviceDeviceInterface { pub iunknown: IUnknownVTable, pub open: Option<unsafe extern "C" fn(this_pointer: *mut c_void, options: IOOptionBits) -> IOReturn>, pub close: Option<unsafe extern "C" fn(this_pointer: *mut c_void, options: IOOptionBits) -> IOReturn>, pub get_property: Option<unsafe extern "C" fn(this_pointer: *mut c_void, key: CFStringRef, property: *mut CFTypeRef) -> IOReturn>, pub set_property: Option<unsafe extern "C" fn(this_pointer: *mut c_void, key: CFStringRef, property: CFTypeRef) -> IOReturn>, pub get_async_event_source: Option<unsafe extern "C" fn(this_pointer: *mut c_void, source: *mut CFTypeRef) -> IOReturn>, pub copy_matching_elements: Option<unsafe extern "C" fn(this_pointer: *mut c_void, matching_dict: CFDictionaryRef, elements: *mut CFArrayRef, options: IOOptionBits) -> IOReturn>, pub set_value: Option<unsafe extern "C" fn(this_pointer: *mut c_void, element: IOHIDElementRef, value: IOHIDValueRef, timeout: u32, callback: Option<IOHIDValueCallback>, context: *mut c_void, options: IOOptionBits) -> IOReturn>, pub get_value: Option<unsafe extern "C" fn(this_pointer: *mut c_void, element: IOHIDElementRef, value: *mut IOHIDValueRef, timeout: u32, callback: Option<IOHIDValueCallback>, context: *mut c_void, options: IOOptionBits) -> IOReturn>, pub set_input_report_callback: Option<unsafe extern "C" fn(this_pointer: *mut c_void, report: *mut u8, report_length: CFIndex, callback: Option<IOHIDReportCallback>, context: *mut c_void, options: IOOptionBits) -> IOReturn>, pub set_report: Option<unsafe extern "C" fn(this_pointer: *mut c_void, report_type: IOHIDReportType, report_id: u32, report: *const u8, report_length: CFIndex, timeout: u32, callback: Option<IOHIDReportCallback>, context: *mut c_void, options: IOOptionBits) -> IOReturn>, pub get_report: Option<unsafe extern "C" fn(this_pointer: *mut c_void, report_type: IOHIDReportType, report_id: u32, report: *mut u8, report_length: *mut CFIndex, timeout: u32, callback: Option<IOHIDReportCallback>, context: *mut c_void, options: IOOptionBits) -> IOReturn>, }
Available on crate feature raw-ffi only.

Fields§

§iunknown: IUnknownVTable§open: Option<unsafe extern "C" fn(this_pointer: *mut c_void, options: IOOptionBits) -> IOReturn>§close: Option<unsafe extern "C" fn(this_pointer: *mut c_void, options: IOOptionBits) -> IOReturn>§get_property: Option<unsafe extern "C" fn(this_pointer: *mut c_void, key: CFStringRef, property: *mut CFTypeRef) -> IOReturn>§set_property: Option<unsafe extern "C" fn(this_pointer: *mut c_void, key: CFStringRef, property: CFTypeRef) -> IOReturn>§get_async_event_source: Option<unsafe extern "C" fn(this_pointer: *mut c_void, source: *mut CFTypeRef) -> IOReturn>§copy_matching_elements: Option<unsafe extern "C" fn(this_pointer: *mut c_void, matching_dict: CFDictionaryRef, elements: *mut CFArrayRef, options: IOOptionBits) -> IOReturn>§set_value: Option<unsafe extern "C" fn(this_pointer: *mut c_void, element: IOHIDElementRef, value: IOHIDValueRef, timeout: u32, callback: Option<IOHIDValueCallback>, context: *mut c_void, options: IOOptionBits) -> IOReturn>§get_value: Option<unsafe extern "C" fn(this_pointer: *mut c_void, element: IOHIDElementRef, value: *mut IOHIDValueRef, timeout: u32, callback: Option<IOHIDValueCallback>, context: *mut c_void, options: IOOptionBits) -> IOReturn>§set_input_report_callback: Option<unsafe extern "C" fn(this_pointer: *mut c_void, report: *mut u8, report_length: CFIndex, callback: Option<IOHIDReportCallback>, context: *mut c_void, options: IOOptionBits) -> IOReturn>§set_report: Option<unsafe extern "C" fn(this_pointer: *mut c_void, report_type: IOHIDReportType, report_id: u32, report: *const u8, report_length: CFIndex, timeout: u32, callback: Option<IOHIDReportCallback>, context: *mut c_void, options: IOOptionBits) -> IOReturn>§get_report: Option<unsafe extern "C" fn(this_pointer: *mut c_void, report_type: IOHIDReportType, report_id: u32, report: *mut u8, report_length: *mut CFIndex, timeout: u32, callback: Option<IOHIDReportCallback>, context: *mut c_void, options: IOOptionBits) -> IOReturn>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.