Enum usb2::GetDescriptor[][src]

pub enum GetDescriptor {
    Configuration {
        index: u8,
    },
    Device,
    DeviceQualifier,
    OtherSpeedConfiguration {
        index: u8,
    },
    String {
        index: u8,
        lang_id: u16,
    },
}

GET_DESCRIPTOR descriptor

See section 9.4.3 and table 9-5 of (USB2)

Variants

Configuration

Configuration descriptor

Fields of Configuration

index: u8

Configuration descriptor index (0..bNumConfigurations)

Device

Device descriptor

DeviceQualifier

Device qualifier descriptor

OtherSpeedConfiguration

Other speed configuration descriptor

Fields of OtherSpeedConfiguration

index: u8

Other speed configuration descriptor index

String

String descriptor

Fields of String

index: u8

String descriptor index

lang_id: u16

Language identifier

Trait Implementations

impl Clone for GetDescriptor[src]

impl Copy for GetDescriptor[src]

impl Debug for GetDescriptor[src]

impl PartialEq<GetDescriptor> for GetDescriptor[src]

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