[][src]Struct rusb::InterfaceDescriptor

pub struct InterfaceDescriptor<'a> { /* fields omitted */ }

Describes an alternate setting for an interface.

Methods

impl<'a> InterfaceDescriptor<'a>[src]

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

Returns the interface's number.

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

Returns the alternate setting number.

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

Returns the interface's class code.

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

Returns the interface's sub class code.

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

Returns the interface's protocol code.

pub fn description_string_index(&self) -> Option<u8>[src]

Returns the index of the string descriptor that describes the interface.

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

Returns the number of endpoints belonging to this interface.

Important traits for EndpointDescriptors<'a>
pub fn endpoint_descriptors(&self) -> EndpointDescriptors[src]

Returns an iterator over the interface's endpoint descriptors.

pub fn extra(&self) -> Option<&[u8]>[src]

Returns the unknown 'extra' bytes that libusb does not understand.

Trait Implementations

impl<'a> Debug for InterfaceDescriptor<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for InterfaceDescriptor<'a>

impl<'a> !Send for InterfaceDescriptor<'a>

impl<'a> !Sync for InterfaceDescriptor<'a>

impl<'a> Unpin for InterfaceDescriptor<'a>

impl<'a> UnwindSafe for InterfaceDescriptor<'a>

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, 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.