Struct libusb::ConfigDescriptor [−][src]
pub struct ConfigDescriptor { /* fields omitted */ }Describes a configuration.
Methods
impl ConfigDescriptor[src] 
impl ConfigDescriptorpub fn number(&self) -> u8[src] 
pub fn number(&self) -> u8Returns the configuration number.
pub fn max_power(&self) -> u16[src] 
pub fn max_power(&self) -> u16Returns the device's maximum power consumption (in milliwatts) in this configuration.
pub fn self_powered(&self) -> bool[src] 
pub fn self_powered(&self) -> boolIndicates if the device is self-powered in this configuration.
pub fn remote_wakeup(&self) -> bool[src] 
pub fn remote_wakeup(&self) -> boolIndicates 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) -> u8Returns 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) -> InterfacesReturns a collection of the configuration's interfaces.
Trait Implementations
impl Drop for ConfigDescriptor[src] 
impl Drop for ConfigDescriptorimpl Sync for ConfigDescriptor[src] 
impl Sync for ConfigDescriptorimpl Send for ConfigDescriptor[src] 
impl Send for ConfigDescriptorimpl Debug for ConfigDescriptor[src] 
impl Debug for ConfigDescriptor