Represents a single device in the USB database.
Every device has a corresponding vendor, a device ID, a pretty name,
and a list of associated
Device corresponding to the given vendor and product IDs,
None if no such device exists in the DB.
Vendor that this device belongs to.
Looking up a vendor by device is cheap (
Returns a tuple of (vendor id, device/"product" id) for this device.
This is convenient for interactions with other USB libraries.
Returns the device's ID.
Returns the device's name.
pub fn interfaces(&self) -> impl Iterator<Item = &'static Interface>[src]
Returns an iterator over the device's interfaces.
NOTE: The USB database does not include interface information for most devices. This list is not authoritative.
impl StructuralPartialEq for Device[src]
impl RefUnwindSafe for Device[src]
impl UnwindSafe for Device[src]
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.