Struct wooting_analog_common::DeviceInfo
source · [−]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,
}
Expand description
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
Implementations
sourceimpl DeviceInfo
impl DeviceInfo
pub fn new_with_id(
vendor_id: u16,
product_id: u16,
manufacturer_name: String,
device_name: String,
device_id: DeviceID,
device_type: DeviceType
) -> Self
Trait Implementations
sourceimpl Clone for DeviceInfo
impl Clone for DeviceInfo
sourcefn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DeviceInfo
impl Debug for DeviceInfo
sourceimpl From<DeviceInfo> for DeviceInfo_FFI
impl From<DeviceInfo> for DeviceInfo_FFI
sourcefn from(device: DeviceInfo) -> Self
fn from(device: DeviceInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more