#[repr(C)]pub struct DeviceDescriptor {Show 14 fields
pub bLength: u8,
pub bDescriptorType: u8,
pub bcdUSB: [u8; 2],
pub bDeviceClass: u8,
pub bDeviceSubClass: u8,
pub bDeviceProtocol: u8,
pub bMaxPacketSize0: u8,
pub idVendor: [u8; 2],
pub idProduct: [u8; 2],
pub bcdDevice: [u8; 2],
pub iManufacturer: u8,
pub iProduct: u8,
pub iSerialNumber: u8,
pub bNumConfigurations: u8,
}Expand description
A device descriptor, see USB 2.0 section 9.6.1
Fields§
§bLength: u8§bDescriptorType: u8§bcdUSB: [u8; 2]§bDeviceClass: u8§bDeviceSubClass: u8§bDeviceProtocol: u8§bMaxPacketSize0: u8§idVendor: [u8; 2]§idProduct: [u8; 2]§bcdDevice: [u8; 2]§iManufacturer: u8§iProduct: u8§iSerialNumber: u8§bNumConfigurations: u8Trait Implementations§
Source§impl Debug for DeviceDescriptor
impl Debug for DeviceDescriptor
Auto Trait Implementations§
impl Freeze for DeviceDescriptor
impl RefUnwindSafe for DeviceDescriptor
impl Send for DeviceDescriptor
impl Sync for DeviceDescriptor
impl Unpin for DeviceDescriptor
impl UnsafeUnpin for DeviceDescriptor
impl UnwindSafe for DeviceDescriptor
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