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

Returns the vendor ID for this device.

Returns the product ID for this device.

Returns the HID path of this device.

HID implementations will probably store the path as a CStr or OsStr. It should be converted to a UTF-8 string as well as possible.

Provided Methods

Returns the packet size for this HID device.

This size does not include the report number (if used).

Implementations on Foreign Types

Implementors