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.
Trait Implementations§
source§impl Debug for ConfigDescriptor
impl Debug for ConfigDescriptor
source§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more