pub struct Interface<'a> { /* private fields */ }
Expand description
A device interface.
An interface can have several descriptors, each describing an alternate setting of the interface.
Implementations
sourceimpl<'a> Interface<'a>
impl<'a> Interface<'a>
sourcepub fn descriptors(&self) -> InterfaceDescriptors<'a>ⓘNotable traits for InterfaceDescriptors<'a>impl<'a> Iterator for InterfaceDescriptors<'a> type Item = InterfaceDescriptor<'a>;
pub fn descriptors(&self) -> InterfaceDescriptors<'a>ⓘNotable traits for InterfaceDescriptors<'a>impl<'a> Iterator for InterfaceDescriptors<'a> type Item = InterfaceDescriptor<'a>;
Returns an iterator over the interface’s descriptors.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Interface<'a>
impl<'a> !Send for Interface<'a>
impl<'a> !Sync for Interface<'a>
impl<'a> Unpin for Interface<'a>
impl<'a> UnwindSafe for Interface<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more