Struct usb_util::descriptor::InterfaceDescriptorTree
source · pub struct InterfaceDescriptorTree {
offset: usize,
inner: InterfaceDescriptor,
endpoint_descriptors: BTreeMap<u8, EndpointDescriptor>,
}
Fields§
§offset: usize
§inner: InterfaceDescriptor
§endpoint_descriptors: BTreeMap<u8, EndpointDescriptor>
Implementations§
source§impl InterfaceDescriptorTree
impl InterfaceDescriptorTree
pub fn get_endpoint_descriptor(&self, ep_idx: u8) -> Option<&EndpointDescriptor>
Trait Implementations§
source§impl Clone for InterfaceDescriptorTree
impl Clone for InterfaceDescriptorTree
source§fn clone(&self) -> InterfaceDescriptorTree
fn clone(&self) -> InterfaceDescriptorTree
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 InterfaceDescriptorTree
impl Deref for InterfaceDescriptorTree
§type Target = InterfaceDescriptor
type Target = InterfaceDescriptor
The resulting type after dereferencing.
source§fn deref(&self) -> &InterfaceDescriptor
fn deref(&self) -> &InterfaceDescriptor
Dereferences the value.
Auto Trait Implementations§
impl RefUnwindSafe for InterfaceDescriptorTree
impl Send for InterfaceDescriptorTree
impl Sync for InterfaceDescriptorTree
impl Unpin for InterfaceDescriptorTree
impl UnwindSafe for InterfaceDescriptorTree
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