Struct rusb::ConfigDescriptor
source · [−]pub struct ConfigDescriptor { /* private fields */ }
Expand description
Describes a configuration.
Implementations
sourceimpl 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<'_>ⓘNotable traits for Interfaces<'a>impl<'a> Iterator for Interfaces<'a> type Item = Interface<'a>;
pub fn interfaces(&self) -> Interfaces<'_>ⓘNotable traits for Interfaces<'a>impl<'a> Iterator for Interfaces<'a> type Item = Interface<'a>;
Returns a collection of the configuration’s interfaces.
Trait Implementations
sourceimpl Debug for ConfigDescriptor
impl Debug for ConfigDescriptor
sourceimpl Drop for ConfigDescriptor
impl Drop for ConfigDescriptor
impl Send for ConfigDescriptor
impl Sync for ConfigDescriptor
Auto Trait Implementations
impl RefUnwindSafe for ConfigDescriptor
impl Unpin for ConfigDescriptor
impl UnwindSafe for ConfigDescriptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more