pub struct DeviceDescriptor {
pub usb_version: u16,
pub class: u8,
pub subclass: u8,
pub protocol: u8,
pub max_packet_size_0: u8,
pub vendor_id: u16,
pub product_id: u16,
pub device_version: u16,
pub manufacturer_string_index: Option<NonZero<u8>>,
pub product_string_index: Option<NonZero<u8>>,
pub serial_number_string_index: Option<NonZero<u8>>,
pub num_configurations: u8,
}Fields§
§usb_version: u16§class: u8§subclass: u8§protocol: u8§max_packet_size_0: u8§vendor_id: u16§product_id: u16§device_version: u16§manufacturer_string_index: Option<NonZero<u8>>§product_string_index: Option<NonZero<u8>>§serial_number_string_index: Option<NonZero<u8>>§num_configurations: u8Implementations§
Trait 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 From<DeviceDescriptor> for DeviceDescriptor
impl From<DeviceDescriptor> for DeviceDescriptor
Source§fn from(desc: DeviceDescriptor) -> DeviceDescriptor
fn from(desc: DeviceDescriptor) -> DeviceDescriptor
Converts to this type from the input type.
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