[−][src]Crate usb_ids
Rust wrappers for the USB ID Repository.
The USB ID Repository is the canonical source of USB device information for most Linux userspaces; this crate vendors the USB ID database to allow non-Linux hosts to access the same canonical information.
Usage
Iterating over all known vendors:
use usb_ids::Vendors; for vendor in Vendors::iter() { for device in vendor.devices() { println!("vendor: {}, device: {}", vendor.name(), device.name()); } }
See the individual documentation for each structure for more details.
Structs
Device | Represents a single device in the USB database. |
Interface | Represents an interface to a USB device in the USB database. |
Vendor | Represents a USB device vendor in the USB database. |
Vendors | An abstraction for iterating over all vendors in the USB database. |
Traits
FromId | A convenience trait for retrieving a top-level entity (like a |