Enum usb2::SetDescriptor[][src]

pub enum SetDescriptor {
    Configuration {
        index: u8,
    },
    Device,
    String {
        index: u8,
        lang_id: u16,
    },
}

SET_DESCRIPTOR descriptor

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

Variants

Configuration

Configuration descriptor

Fields of Configuration

index: u8

Configuration descriptor index (0..bNumConfigurations)

Device

Device descriptor

String

String descriptor

Fields of String

index: u8

String descriptor index

lang_id: u16

Language identifier

Trait Implementations

impl Clone for SetDescriptor[src]

impl Copy for SetDescriptor[src]

impl Debug for SetDescriptor[src]

impl PartialEq<SetDescriptor> for SetDescriptor[src]

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