pub struct Interface<'a> { /* private fields */ }Expand description
An interface descriptor, with its endpoints following it in the raw bytes.
Implementations§
Source§impl<'a> Interface<'a>
impl<'a> Interface<'a>
Sourcepub fn alternate_setting(&self) -> u8
pub fn alternate_setting(&self) -> u8
bAlternateSetting.
Sourcepub fn endpoint_count(&self) -> u8
pub fn endpoint_count(&self) -> u8
bNumEndpoints, which is also the number of endpoints
endpoints yields unless the descriptor is truncated.
Trait Implementations§
impl<'a> Copy for Interface<'a>
impl<'a> Eq for Interface<'a>
impl<'a> StructuralPartialEq for Interface<'a>
Auto Trait Implementations§
impl<'a> Forget for Interface<'a>
impl<'a> Freeze for Interface<'a>
impl<'a> Move for Interface<'a>
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> UnsafeUnpin for Interface<'a>
impl<'a> UnwindSafe for Interface<'a>
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