[][src]Struct usbw::libusb::device_descriptor::DeviceDescriptor

pub struct DeviceDescriptor(pub libusb_device_descriptor);

Implementations

impl DeviceDescriptor[src]

pub fn manufacturer_string_index(&self) -> Option<u8>[src]

pub fn product_string_index(&self) -> Option<u8>[src]

Returns the index of the string descriptor that contains the product name.

pub fn serial_number_string_index(&self) -> Option<u8>[src]

Returns the index of the string descriptor that contains the device's serial number.

pub fn class_code(&self) -> u8[src]

Returns the device's class code.

pub fn sub_class_code(&self) -> u8[src]

Returns the device's sub class code.

pub fn protocol_code(&self) -> u8[src]

Returns the device's protocol code.

pub fn vendor_id(&self) -> VendorID[src]

pub fn product_id(&self) -> ProductID[src]

pub fn device_identifier(&self) -> DeviceIdentifier[src]

Trait Implementations

impl Clone for DeviceDescriptor[src]

impl Debug for DeviceDescriptor[src]

impl From<libusb_device_descriptor> for DeviceDescriptor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.