pub struct DeviceDescriptor(pub libusb_device_descriptor);
Tuple Fields§
§0: libusb_device_descriptor
Implementations§
Source§impl DeviceDescriptor
impl DeviceDescriptor
pub fn manufacturer_string_index(&self) -> Option<u8>
Sourcepub fn product_string_index(&self) -> Option<u8>
pub fn product_string_index(&self) -> Option<u8>
Returns the index of the string descriptor that contains the product name.
Sourcepub fn serial_number_string_index(&self) -> Option<u8>
pub fn serial_number_string_index(&self) -> Option<u8>
Returns the index of the string descriptor that contains the device’s serial number.
Sourcepub fn class_code(&self) -> u8
pub fn class_code(&self) -> u8
Returns the device’s class code.
Sourcepub fn sub_class_code(&self) -> u8
pub fn sub_class_code(&self) -> u8
Returns the device’s sub class code.
Sourcepub fn protocol_code(&self) -> u8
pub fn protocol_code(&self) -> u8
Returns the device’s protocol code.
pub fn vendor_id(&self) -> VendorID
pub fn product_id(&self) -> ProductID
pub fn device_identifier(&self) -> DeviceIdentifier
Trait Implementations§
Source§impl Clone for DeviceDescriptor
impl Clone for DeviceDescriptor
Source§impl Debug for DeviceDescriptor
impl Debug for DeviceDescriptor
Source§impl From<libusb_device_descriptor> for DeviceDescriptor
impl From<libusb_device_descriptor> for DeviceDescriptor
Source§fn from(d: libusb_device_descriptor) -> Self
fn from(d: libusb_device_descriptor) -> Self
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