#[repr(C)]
pub struct SDL_hid_device_info {
Show 14 fields pub path: *mut c_char, pub vendor_id: c_ushort, pub product_id: c_ushort, pub serial_number: *mut wchar_t, pub release_number: c_ushort, pub manufacturer_string: *mut wchar_t, pub product_string: *mut 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 next: *mut SDL_hid_device_info,
}
Expand description

hidapi info structure */ \brief Information about a connected HID device

Fields§

§path: *mut c_char

Platform-specific device path

§vendor_id: c_ushort

Device Vendor ID

§product_id: c_ushort

Device Product ID

§serial_number: *mut wchar_t

Serial Number

§release_number: c_ushort

Device Release Number in binary-coded decimal, also known as Device Version Number

§manufacturer_string: *mut wchar_t

Manufacturer String

§product_string: *mut wchar_t

Product string

§usage_page: c_ushort

Usage Page for this Device/Interface (Windows/Mac only).

§usage: c_ushort

Usage for this Device/Interface (Windows/Mac only).

§interface_number: c_int

The USB interface which this logical device represents.

Valid on both Linux implementations in all cases. Valid on the Windows implementation only if the device contains more than one interface.

§interface_class: c_int

Additional information about the USB interface. Valid on libusb and Android implementations.

§interface_subclass: c_int§interface_protocol: c_int§next: *mut SDL_hid_device_info

Pointer to the next device

Trait Implementations§

source§

impl Clone for SDL_hid_device_info

source§

fn clone(&self) -> SDL_hid_device_info

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for SDL_hid_device_info

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>,

§

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>,

§

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.