[−][src]Struct libusb::DeviceDescriptor
Describes a device.
Methods
impl DeviceDescriptor[src]
impl DeviceDescriptorpub fn usb_version(&self) -> Version[src]
pub fn usb_version(&self) -> VersionReturns the device's maximum supported USB version.
pub fn device_version(&self) -> Version[src]
pub fn device_version(&self) -> VersionReturns the manufacturer's version of the device.
pub fn manufacturer_string_index(&self) -> Option<u8>[src]
pub fn manufacturer_string_index(&self) -> Option<u8>Returns the index of the string descriptor that contains the manufacturer name.
pub fn product_string_index(&self) -> Option<u8>[src]
pub fn product_string_index(&self) -> Option<u8>Returns the index of the string descriptor that contains the product name.
pub fn serial_number_string_index(&self) -> Option<u8>[src]
pub fn serial_number_string_index(&self) -> Option<u8>Returns the index of the string descriptor that contains the device's serial number.
pub fn class_code(&self) -> u8[src]
pub fn class_code(&self) -> u8Returns the device's class code.
pub fn sub_class_code(&self) -> u8[src]
pub fn sub_class_code(&self) -> u8Returns the device's sub class code.
pub fn protocol_code(&self) -> u8[src]
pub fn protocol_code(&self) -> u8Returns the device's protocol code.
pub fn vendor_id(&self) -> u16[src]
pub fn vendor_id(&self) -> u16Returns the device's vendor ID.
pub fn product_id(&self) -> u16[src]
pub fn product_id(&self) -> u16Returns the device's product ID.
pub fn max_packet_size(&self) -> u8[src]
pub fn max_packet_size(&self) -> u8Returns the maximum packet size of the device's first endpoint.
pub fn num_configurations(&self) -> u8[src]
pub fn num_configurations(&self) -> u8Returns the number of config descriptors available for the device.
Trait Implementations
impl Debug for DeviceDescriptor[src]
impl Debug for DeviceDescriptorAuto Trait Implementations
impl Send for DeviceDescriptor
impl Send for DeviceDescriptorimpl Sync for DeviceDescriptor
impl Sync for DeviceDescriptorBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more