pub struct InterfaceDescriptors {
pub interface_number: u8,
pub alt_settings: Vec<InterfaceDescriptor>,
}Fields§
§interface_number: u8§alt_settings: Vec<InterfaceDescriptor>Implementations§
Source§impl InterfaceDescriptors
impl InterfaceDescriptors
pub fn first_alt_setting(&self) -> InterfaceDescriptor
Trait Implementations§
Source§impl Clone for InterfaceDescriptors
impl Clone for InterfaceDescriptors
Source§fn clone(&self) -> InterfaceDescriptors
fn clone(&self) -> InterfaceDescriptors
Returns a duplicate 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 Debug for InterfaceDescriptors
impl Debug for InterfaceDescriptors
Source§impl From<InterfaceDescriptors<'_>> for InterfaceDescriptors
impl From<InterfaceDescriptors<'_>> for InterfaceDescriptors
Source§fn from(desc: InterfaceDescriptors<'_>) -> InterfaceDescriptors
fn from(desc: InterfaceDescriptors<'_>) -> InterfaceDescriptors
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InterfaceDescriptors
impl RefUnwindSafe for InterfaceDescriptors
impl Send for InterfaceDescriptors
impl Sync for InterfaceDescriptors
impl Unpin for InterfaceDescriptors
impl UnwindSafe for InterfaceDescriptors
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