Struct ft60x_rs::DeviceDescriptor
source · pub struct DeviceDescriptor { /* private fields */ }
Expand description
Holds information regarding a USB device.
Implementations§
source§impl DeviceDescriptor
impl DeviceDescriptor
sourcepub fn usb_specification_number(&self) -> usize
pub fn usb_specification_number(&self) -> usize
The USB specification number the device complies to.
sourcepub fn class_code(&self) -> usize
pub fn class_code(&self) -> usize
The device class code assigned by the USB organization.
sourcepub fn subclass_code(&self) -> usize
pub fn subclass_code(&self) -> usize
The device subclass code assigned by the USB organization.
sourcepub fn protocol_code(&self) -> usize
pub fn protocol_code(&self) -> usize
The device protocol code assigned by the USB organization.
sourcepub fn max_packet_size(&self) -> usize
pub fn max_packet_size(&self) -> usize
The maximum packet size for Zero Endpoint
sourcepub fn product_id(&self) -> usize
pub fn product_id(&self) -> usize
The device product ID assigned by the manufacturer.
sourcepub fn release_number(&self) -> usize
pub fn release_number(&self) -> usize
The device release number.
sourcepub fn num_configurations(&self) -> usize
pub fn num_configurations(&self) -> usize
The number of possible configurations for the device.
Trait Implementations§
source§impl Clone for DeviceDescriptor
impl Clone for DeviceDescriptor
source§fn clone(&self) -> DeviceDescriptor
fn clone(&self) -> DeviceDescriptor
Returns a copy 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 Default for DeviceDescriptor
impl Default for DeviceDescriptor
source§fn default() -> DeviceDescriptor
fn default() -> DeviceDescriptor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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