Trait ctaphid::HidDeviceInfo
source · [−]pub trait HidDeviceInfo: Debug {
fn vendor_id(&self) -> u16;
fn product_id(&self) -> u16;
fn path(&self) -> Cow<'_, str>;
fn packet_size(&self) -> usize { ... }
}
Expand description
Information about a HID device.
Required Methods
fn product_id(&self) -> u16
fn product_id(&self) -> u16
Returns the product ID for this device.
Provided Methods
fn packet_size(&self) -> usize
fn packet_size(&self) -> usize
Returns the packet size for this HID device.
This size does not include the report number (if used).