pub enum GetDescriptor {
Configuration {
index: u8,
},
Device,
DeviceQualifier,
OtherSpeedConfiguration {
index: u8,
},
String {
index: u8,
lang_id: u16,
},
}
Expand description
GET_DESCRIPTOR descriptor
See section 9.4.3 and table 9-5 of (USB2)
Variants§
Configuration
Configuration descriptor
Device
Device descriptor
DeviceQualifier
Device qualifier descriptor
OtherSpeedConfiguration
Other speed configuration descriptor
String
String descriptor
Trait Implementations§
Source§impl Clone for GetDescriptor
impl Clone for GetDescriptor
Source§fn clone(&self) -> GetDescriptor
fn clone(&self) -> GetDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GetDescriptor
impl Debug for GetDescriptor
Source§impl PartialEq for GetDescriptor
impl PartialEq for GetDescriptor
impl Copy for GetDescriptor
impl StructuralPartialEq for GetDescriptor
Auto Trait Implementations§
impl Freeze for GetDescriptor
impl RefUnwindSafe for GetDescriptor
impl Send for GetDescriptor
impl Sync for GetDescriptor
impl Unpin for GetDescriptor
impl UnwindSafe for GetDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more