#[repr(C)]pub struct SDL_hid_device_info {Show 15 fields
pub path: *mut c_char,
pub vendor_id: c_ushort,
pub product_id: c_ushort,
pub serial_number: *mut c_wchar_t,
pub release_number: c_ushort,
pub manufacturer_string: *mut c_wchar_t,
pub product_string: *mut c_wchar_t,
pub usage_page: c_ushort,
pub usage: c_ushort,
pub interface_number: c_int,
pub interface_class: c_int,
pub interface_subclass: c_int,
pub interface_protocol: c_int,
pub bus_type: SDL_hid_bus_type,
pub next: *mut SDL_hid_device_info,
}Expand description
Fields§
§path: *mut c_charPlatform-specific device path
vendor_id: c_ushortDevice Vendor ID
product_id: c_ushortDevice Product ID
serial_number: *mut c_wchar_tSerial Number
release_number: c_ushortDevice Release Number in binary-coded decimal, also known as Device Version Number
manufacturer_string: *mut c_wchar_tManufacturer String
product_string: *mut c_wchar_tProduct string
usage_page: c_ushortUsage Page for this Device/Interface (Windows/Mac/hidraw only)
usage: c_ushortUsage for this Device/Interface (Windows/Mac/hidraw only)
interface_number: c_intThe USB interface which this logical device represents.
Valid only if the device is a USB HID device. Set to -1 in all other cases.
interface_class: c_intAdditional information about the USB interface. Valid on libusb and Android implementations.
interface_subclass: c_int§interface_protocol: c_int§bus_type: SDL_hid_bus_typeUnderlying bus type
next: *mut SDL_hid_device_infoPointer to the next device
Trait Implementations§
Source§impl Debug for SDL_hid_device_info
impl Debug for SDL_hid_device_info
Auto Trait Implementations§
impl Freeze for SDL_hid_device_info
impl RefUnwindSafe for SDL_hid_device_info
impl !Send for SDL_hid_device_info
impl !Sync for SDL_hid_device_info
impl Unpin for SDL_hid_device_info
impl UnwindSafe for SDL_hid_device_info
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