Struct usb_util::ConfigDescriptorTree
source · pub struct ConfigDescriptorTree {
offset: usize,
inner: ConfigDescriptor,
interface_descriptors: BTreeMap<(u8, u8), InterfaceDescriptorTree>,
}
Fields§
§offset: usize
§inner: ConfigDescriptor
§interface_descriptors: BTreeMap<(u8, u8), InterfaceDescriptorTree>
Implementations§
source§impl ConfigDescriptorTree
impl ConfigDescriptorTree
sourcepub fn get_interface_descriptor(
&self,
interface_num: u8,
alt_setting: u8
) -> Option<&InterfaceDescriptorTree>
pub fn get_interface_descriptor( &self, interface_num: u8, alt_setting: u8 ) -> Option<&InterfaceDescriptorTree>
Get interface by number and alt setting.
Methods from Deref<Target = ConfigDescriptor>§
pub fn num_interfaces(&self) -> u8
Trait Implementations§
source§impl Clone for ConfigDescriptorTree
impl Clone for ConfigDescriptorTree
source§fn clone(&self) -> ConfigDescriptorTree
fn clone(&self) -> ConfigDescriptorTree
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Deref for ConfigDescriptorTree
impl Deref for ConfigDescriptorTree
§type Target = ConfigDescriptor
type Target = ConfigDescriptor
The resulting type after dereferencing.
source§fn deref(&self) -> &ConfigDescriptor
fn deref(&self) -> &ConfigDescriptor
Dereferences the value.
Auto Trait Implementations§
impl RefUnwindSafe for ConfigDescriptorTree
impl Send for ConfigDescriptorTree
impl Sync for ConfigDescriptorTree
impl Unpin for ConfigDescriptorTree
impl UnwindSafe for ConfigDescriptorTree
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