pub struct HidApiInfo {
pub path: String,
pub vendor_id: u16,
pub product_id: u16,
pub serial_number: String,
pub release_number: u16,
pub manufacturer_string: String,
pub product_string: String,
pub usage_page: u16,
pub usage: u16,
pub interface_number: i32,
}
Expand description
HidApi Information
Fields§
§path: String
§vendor_id: u16
§product_id: u16
§serial_number: String
§release_number: u16
§manufacturer_string: String
§product_string: String
§usage_page: u16
§usage: u16
§interface_number: i32
Implementations§
Source§impl HidApiInfo
impl HidApiInfo
Sourcepub fn key(&mut self) -> String
pub fn key(&mut self) -> String
Generate a unique string based off of hidapi information (excluding path/physical location)
pub fn new(device_info: &DeviceInfo) -> HidApiInfo
Trait Implementations§
Source§impl Clone for HidApiInfo
impl Clone for HidApiInfo
Source§fn clone(&self) -> HidApiInfo
fn clone(&self) -> HidApiInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HidApiInfo
impl Debug for HidApiInfo
Source§impl Default for HidApiInfo
impl Default for HidApiInfo
Source§fn default() -> HidApiInfo
fn default() -> HidApiInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HidApiInfo
impl RefUnwindSafe for HidApiInfo
impl Send for HidApiInfo
impl Sync for HidApiInfo
impl Unpin for HidApiInfo
impl UnwindSafe for HidApiInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.