Struct usb_util::DeviceDescriptorTree
source · pub struct DeviceDescriptorTree {
raw: Vec<u8>,
inner: DeviceDescriptor,
config_descriptors: BTreeMap<u8, ConfigDescriptorTree>,
config_values: BTreeMap<u8, u8>,
}
Fields§
§raw: Vec<u8>
§inner: DeviceDescriptor
§config_descriptors: BTreeMap<u8, ConfigDescriptorTree>
§config_values: BTreeMap<u8, u8>
Implementations§
source§impl DeviceDescriptorTree
impl DeviceDescriptorTree
pub fn get_config_descriptor( &self, config_value: u8 ) -> Option<&ConfigDescriptorTree>
sourcepub fn get_config_descriptor_by_index(
&self,
config_index: u8
) -> Option<&ConfigDescriptorTree>
pub fn get_config_descriptor_by_index( &self, config_index: u8 ) -> Option<&ConfigDescriptorTree>
Retrieve the Nth configuration descriptor in the device descriptor.
config_index
: 0-based index into the list of configuration descriptors.
Trait Implementations§
source§impl Clone for DeviceDescriptorTree
impl Clone for DeviceDescriptorTree
source§fn clone(&self) -> DeviceDescriptorTree
fn clone(&self) -> DeviceDescriptorTree
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 DeviceDescriptorTree
impl Deref for DeviceDescriptorTree
§type Target = DeviceDescriptor
type Target = DeviceDescriptor
The resulting type after dereferencing.
source§fn deref(&self) -> &DeviceDescriptor
fn deref(&self) -> &DeviceDescriptor
Dereferences the value.
Auto Trait Implementations§
impl RefUnwindSafe for DeviceDescriptorTree
impl Send for DeviceDescriptorTree
impl Sync for DeviceDescriptorTree
impl Unpin for DeviceDescriptorTree
impl UnwindSafe for DeviceDescriptorTree
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