pub struct Descriptor {
pub bDeviceClass: u8,
pub bDeviceSubClass: u8,
pub bDeviceProtocol: u8,
pub bMaxPacketSize0: bMaxPacketSize0,
pub idVendor: u16,
pub idProduct: u16,
pub bcdDevice: u16,
pub iManufacturer: Option<NonZeroU8>,
pub iProduct: Option<NonZeroU8>,
pub iSerialNumber: Option<NonZeroU8>,
pub bNumConfigurations: NonZeroU8,
}
Expand description
Device descriptor
Fields§
§bDeviceClass: u8
Device class
bDeviceSubClass: u8
Device subclass
bDeviceProtocol: u8
Device protocol
bMaxPacketSize0: bMaxPacketSize0
Maximum packet size
idVendor: u16
Vendor ID
idProduct: u16
Product ID
bcdDevice: u16
Device release number
iManufacturer: Option<NonZeroU8>
Manufacturer string index
iProduct: Option<NonZeroU8>
Product string index
iSerialNumber: Option<NonZeroU8>
Serial number string index
bNumConfigurations: NonZeroU8
Number of configurations
Implementations§
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for 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