#[repr(C, packed(1))]pub struct usb_device_descriptor {Show 14 fields
pub bLength: __u8,
pub bDescriptorType: __u8,
pub bcdUSB: __le16,
pub bDeviceClass: __u8,
pub bDeviceSubClass: __u8,
pub bDeviceProtocol: __u8,
pub bMaxPacketSize0: __u8,
pub idVendor: __le16,
pub idProduct: __le16,
pub bcdDevice: __le16,
pub iManufacturer: __u8,
pub iProduct: __u8,
pub iSerialNumber: __u8,
pub bNumConfigurations: __u8,
}
Fields§
§bLength: __u8
§bDescriptorType: __u8
§bcdUSB: __le16
§bDeviceClass: __u8
§bDeviceSubClass: __u8
§bDeviceProtocol: __u8
§bMaxPacketSize0: __u8
§idVendor: __le16
§idProduct: __le16
§bcdDevice: __le16
§iManufacturer: __u8
§iProduct: __u8
§iSerialNumber: __u8
§bNumConfigurations: __u8
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 copy 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 usb_device_descriptor
impl Debug for usb_device_descriptor
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