Struct hid_io_core::api::HidApiInfo
source · 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 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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§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.§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.