Struct usb_ids::Interface[][src]

pub struct Interface { /* fields omitted */ }

Represents an interface to a USB device in the USB database.

Every interface has an interface ID (which is an index on the device) and a pretty name.

NOTE: The USB database is not a canonical or authoritative source of interface information for devices. Users who wish to discover interfaces on their USB devices should query those devices directly.

Implementations

impl Interface[src]

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

Returns the interface's ID.

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

Returns the interface's name.

Trait Implementations

impl Clone for Interface[src]

impl Copy for Interface[src]

impl Debug for Interface[src]

impl PartialEq<Interface> for Interface[src]

impl StructuralPartialEq for Interface[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.