Struct usb_ids::Vendor[][src]

pub struct Vendor { /* fields omitted */ }

Represents a USB device vendor in the USB database.

Every device vendor has a vendor ID, a pretty name, and a list of associated Devices.

Implementations

impl Vendor[src]

pub fn id(&self) -> u16[src]

Returns the vendor's ID.

pub fn name(&self) -> &'static str[src]

Returns the vendor's name.

pub fn devices(&self) -> impl Iterator<Item = &'static Device>[src]

Returns an iterator over the vendor's devices.

Trait Implementations

impl Clone for Vendor[src]

impl Copy for Vendor[src]

impl Debug for Vendor[src]

impl FromId<u16> for Vendor[src]

impl PartialEq<Vendor> for Vendor[src]

impl StructuralPartialEq for Vendor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.