pub struct InterfaceInfo { /* private fields */ }
Expand description
Corresponds to android.hardware.usb.UsbInterface
.
Implementations§
Source§impl InterfaceInfo
impl InterfaceInfo
Sourcepub fn interface_number(&self) -> u8
pub fn interface_number(&self) -> u8
Equals bInterfaceNumber
.
Sourcepub fn num_endpoints(&self) -> u8
pub fn num_endpoints(&self) -> u8
Equals bNumEndpoints
.
Trait Implementations§
Source§impl Clone for InterfaceInfo
impl Clone for InterfaceInfo
Source§fn clone(&self) -> InterfaceInfo
fn clone(&self) -> InterfaceInfo
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 InterfaceInfo
impl Debug for InterfaceInfo
impl Copy for InterfaceInfo
Auto Trait Implementations§
impl Freeze for InterfaceInfo
impl RefUnwindSafe for InterfaceInfo
impl Send for InterfaceInfo
impl Sync for InterfaceInfo
impl Unpin for InterfaceInfo
impl UnwindSafe for InterfaceInfo
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