#[repr(C)]pub struct ConfigurationDescriptor {
pub bLength: u8,
pub bDescriptorType: u8,
pub wTotalLength: [u8; 2],
pub bNumInterfaces: u8,
pub bConfigurationValue: u8,
pub iConfiguration: u8,
pub bmAttributes: u8,
pub bMaxPower: u8,
}Expand description
A configuration descriptor, see USB 2.0 section 9.6.3
Fields§
§bLength: u8§bDescriptorType: u8§wTotalLength: [u8; 2]§bNumInterfaces: u8§bConfigurationValue: u8§iConfiguration: u8§bmAttributes: u8§bMaxPower: u8Trait Implementations§
Source§impl Clone for ConfigurationDescriptor
impl Clone for ConfigurationDescriptor
Source§fn clone(&self) -> ConfigurationDescriptor
fn clone(&self) -> ConfigurationDescriptor
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 ConfigurationDescriptor
impl Debug for ConfigurationDescriptor
Source§impl Format for ConfigurationDescriptor
impl Format for ConfigurationDescriptor
impl Copy for ConfigurationDescriptor
impl Pod for ConfigurationDescriptor
Auto Trait Implementations§
impl Freeze for ConfigurationDescriptor
impl RefUnwindSafe for ConfigurationDescriptor
impl Send for ConfigurationDescriptor
impl Sync for ConfigurationDescriptor
impl Unpin for ConfigurationDescriptor
impl UnsafeUnpin for ConfigurationDescriptor
impl UnwindSafe for ConfigurationDescriptor
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.