#[repr(C)]pub struct DeviceDescriptor {Show 14 fields
pub length: u8,
pub descriptor_type: u8,
pub bcd_usb: u16,
pub device_class: u8,
pub device_subclass: u8,
pub device_protocol: u8,
pub max_packet_size: u8,
pub id_vendor: u16,
pub id_product: u16,
pub bcd_device: u16,
pub str_manufacturer: u8,
pub str_product: u8,
pub str_serial_number: u8,
pub num_configurations: u8,
}Fields§
§length: u8§descriptor_type: u8§bcd_usb: u16§device_class: u8§device_subclass: u8§device_protocol: u8§max_packet_size: u8§id_vendor: u16§id_product: u16§bcd_device: u16§str_manufacturer: u8§str_product: u8§str_serial_number: u8§num_configurations: u8Trait Implementations§
Source§impl Clone for DeviceDescriptor
impl Clone for DeviceDescriptor
Source§fn clone(&self) -> DeviceDescriptor
fn clone(&self) -> DeviceDescriptor
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 DeviceDescriptor
impl Debug for DeviceDescriptor
Source§impl PartialEq for DeviceDescriptor
impl PartialEq for DeviceDescriptor
impl Copy for DeviceDescriptor
impl Eq for DeviceDescriptor
impl StructuralPartialEq 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 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