Struct rusb::ConfigDescriptor [−][src]
pub struct ConfigDescriptor { /* fields omitted */ }
Expand description
Describes a configuration.
Implementations
impl ConfigDescriptor
[src]
impl ConfigDescriptor
[src]pub fn max_power(&self) -> u16
[src]
pub fn max_power(&self) -> u16
[src]Returns the device’s maximum power consumption (in milliamps) in this configuration.
pub fn self_powered(&self) -> bool
[src]
pub fn self_powered(&self) -> bool
[src]Indicates if the device is self-powered in this configuration.
pub fn remote_wakeup(&self) -> bool
[src]
pub fn remote_wakeup(&self) -> bool
[src]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>
[src]Returns the index of the string descriptor that describes the configuration.
pub fn num_interfaces(&self) -> u8
[src]
pub fn num_interfaces(&self) -> u8
[src]Returns the number of interfaces for this configuration.
pub fn interfaces(&self) -> Interfaces<'_>ⓘNotable traits for Interfaces<'a>
impl<'a> Iterator for Interfaces<'a> type Item = Interface<'a>;
[src]
pub fn interfaces(&self) -> Interfaces<'_>ⓘNotable traits for Interfaces<'a>
impl<'a> Iterator for Interfaces<'a> type Item = Interface<'a>;
[src]Returns a collection of the configuration’s interfaces.
Trait Implementations
impl Debug for ConfigDescriptor
[src]
impl Debug for ConfigDescriptor
[src]impl Drop for ConfigDescriptor
[src]
impl Drop for ConfigDescriptor
[src]