[][src]Struct wooting_analog_common::DeviceInfo

pub struct DeviceInfo {
    pub vendor_id: u16,
    pub product_id: u16,
    pub manufacturer_name: String,
    pub device_name: String,
    pub device_id: DeviceID,
    pub device_type: DeviceType,
}

The core DeviceInfo struct which contains all the interesting information for a particular device. This is for use internally and should be ignored if you're trying to use it when trying to interact with the SDK using the wrapper

Fields

vendor_id: u16

Device Vendor ID vid

product_id: u16

Device Product ID pid

manufacturer_name: String

Device Manufacturer name

device_name: String

Device name

device_id: DeviceID

Unique device ID, which should be generated using generate_device_id

device_type: DeviceType

Hardware type of the Device

Methods

impl DeviceInfo[src]

pub fn new_with_id(
    vendor_id: u16,
    product_id: u16,
    manufacturer_name: String,
    device_name: String,
    device_id: DeviceID,
    device_type: DeviceType
) -> Self
[src]

Trait Implementations

impl Clone for DeviceInfo[src]

impl From<DeviceInfo> for DeviceInfo_FFI[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.