Struct rusb::ConfigDescriptor
source · pub struct ConfigDescriptor { /* private fields */ }
Expand description
Describes a configuration.
Implementations§
source§impl ConfigDescriptor
impl ConfigDescriptor
sourcepub fn max_power(&self) -> u16
pub fn max_power(&self) -> u16
Returns the device’s maximum power consumption (in milliamps) in this configuration.
sourcepub fn self_powered(&self) -> bool
pub fn self_powered(&self) -> bool
Indicates if the device is self-powered in this configuration.
sourcepub fn remote_wakeup(&self) -> bool
pub fn remote_wakeup(&self) -> bool
Indicates if the device has remote wakeup capability in this configuration.
sourcepub fn description_string_index(&self) -> Option<u8>
pub fn description_string_index(&self) -> Option<u8>
Returns the index of the string descriptor that describes the configuration.
sourcepub fn num_interfaces(&self) -> u8
pub fn num_interfaces(&self) -> u8
Returns the number of interfaces for this configuration.
sourcepub fn interfaces(&self) -> Interfaces<'_> ⓘ
pub fn interfaces(&self) -> Interfaces<'_> ⓘ
Returns a collection of the configuration’s interfaces.