Struct usb_host::descriptor::DeviceDescriptor
source · [−]#[repr(C, packed)]pub struct DeviceDescriptor {Show 14 fields
pub b_length: u8,
pub b_descriptor_type: DescriptorType,
pub bcd_usb: u16,
pub b_device_class: u8,
pub b_device_sub_class: u8,
pub b_device_protocol: u8,
pub b_max_packet_size: u8,
pub id_vendor: u16,
pub id_product: u16,
pub bcd_device: u16,
pub i_manufacturer: u8,
pub i_product: u8,
pub i_serial_number: u8,
pub b_num_configurations: u8,
}
Fields
b_length: u8
b_descriptor_type: DescriptorType
bcd_usb: u16
b_device_class: u8
b_device_sub_class: u8
b_device_protocol: u8
b_max_packet_size: u8
id_vendor: u16
id_product: u16
bcd_device: u16
i_manufacturer: u8
i_product: u8
i_serial_number: u8
b_num_configurations: u8
Trait Implementations
sourceimpl Clone for DeviceDescriptor
impl Clone for DeviceDescriptor
sourcefn clone(&self) -> DeviceDescriptor
fn clone(&self) -> DeviceDescriptor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DeviceDescriptor
impl Debug for DeviceDescriptor
sourceimpl PartialEq<DeviceDescriptor> for DeviceDescriptor
impl PartialEq<DeviceDescriptor> for DeviceDescriptor
sourcefn eq(&self, other: &DeviceDescriptor) -> bool
fn eq(&self, other: &DeviceDescriptor) -> bool
impl Copy for DeviceDescriptor
impl StructuralPartialEq for DeviceDescriptor
Auto Trait Implementations
impl RefUnwindSafe for DeviceDescriptor
impl Send for DeviceDescriptor
impl Sync for DeviceDescriptor
impl Unpin for DeviceDescriptor
impl UnwindSafe for DeviceDescriptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more