Struct libusb::ConfigDescriptor [−][src]
pub struct ConfigDescriptor { /* fields omitted */ }
Describes a configuration.
Methods
impl ConfigDescriptor
[src]
impl ConfigDescriptor
pub fn number(&self) -> u8
[src]
pub fn number(&self) -> u8
Returns the configuration number.
pub fn max_power(&self) -> u16
[src]
pub fn max_power(&self) -> u16
Returns the device's maximum power consumption (in milliwatts) in this configuration.
pub fn self_powered(&self) -> bool
[src]
pub fn self_powered(&self) -> bool
Indicates if the device is self-powered in this configuration.
pub fn remote_wakeup(&self) -> bool
[src]
pub fn remote_wakeup(&self) -> bool
Indicates if the device has remote wakeup capability in this configuration.
pub fn description_string_index(&self) -> Option<u8>
[src]
pub fn description_string_index(&self) -> Option<u8>
Returns the index of the string descriptor that describes the configuration.
pub fn num_interfaces(&self) -> u8
[src]
pub fn num_interfaces(&self) -> u8
Returns the number of interfaces for this configuration.
ⓘImportant traits for Interfaces<'a>pub fn interfaces(&self) -> Interfaces
[src]
ⓘImportant traits for Interfaces<'a>
pub fn interfaces(&self) -> Interfaces
Returns a collection of the configuration's interfaces.
Trait Implementations
impl Drop for ConfigDescriptor
[src]
impl Drop for ConfigDescriptor
impl Sync for ConfigDescriptor
[src]
impl Sync for ConfigDescriptor
impl Send for ConfigDescriptor
[src]
impl Send for ConfigDescriptor
impl Debug for ConfigDescriptor
[src]
impl Debug for ConfigDescriptor