Struct usb2::device::Descriptor [−][src]
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
impl Descriptor
[src]
pub const SIZE: u8
[src]
The size of this descriptor on the wire
pub fn bytes(&self) -> [u8; 18]
[src]
Returns the wire representation of this device endpoint
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,