#[repr(C, packed(1))]pub struct USB_DEVICE_DESCRIPTOR {Show 14 fields
pub bLength: UCHAR,
pub bDescriptorType: UCHAR,
pub bcdUSB: USHORT,
pub bDeviceClass: UCHAR,
pub bDeviceSubClass: UCHAR,
pub bDeviceProtocol: UCHAR,
pub bMaxPacketSize0: UCHAR,
pub idVendor: USHORT,
pub idProduct: USHORT,
pub bcdDevice: USHORT,
pub iManufacturer: UCHAR,
pub iProduct: UCHAR,
pub iSerialNumber: UCHAR,
pub bNumConfigurations: UCHAR,
}
Fields§
§bLength: UCHAR
§bDescriptorType: UCHAR
§bcdUSB: USHORT
§bDeviceClass: UCHAR
§bDeviceSubClass: UCHAR
§bDeviceProtocol: UCHAR
§bMaxPacketSize0: UCHAR
§idVendor: USHORT
§idProduct: USHORT
§bcdDevice: USHORT
§iManufacturer: UCHAR
§iProduct: UCHAR
§iSerialNumber: UCHAR
§bNumConfigurations: UCHAR
Trait Implementations§
Source§impl Clone for USB_DEVICE_DESCRIPTOR
impl Clone for USB_DEVICE_DESCRIPTOR
Source§fn clone(&self) -> USB_DEVICE_DESCRIPTOR
fn clone(&self) -> USB_DEVICE_DESCRIPTOR
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 Default for USB_DEVICE_DESCRIPTOR
impl Default for USB_DEVICE_DESCRIPTOR
Source§fn default() -> USB_DEVICE_DESCRIPTOR
fn default() -> USB_DEVICE_DESCRIPTOR
Returns the “default value” for a type. Read more
impl Copy for USB_DEVICE_DESCRIPTOR
Auto Trait Implementations§
impl Freeze for USB_DEVICE_DESCRIPTOR
impl RefUnwindSafe for USB_DEVICE_DESCRIPTOR
impl Send for USB_DEVICE_DESCRIPTOR
impl Sync for USB_DEVICE_DESCRIPTOR
impl Unpin for USB_DEVICE_DESCRIPTOR
impl UnwindSafe for USB_DEVICE_DESCRIPTOR
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