Struct nusb::InterfaceInfo
source · pub struct InterfaceInfo { /* private fields */ }
Expand description
Summary information about a device’s interface, available before opening a device.
Implementations§
source§impl InterfaceInfo
impl InterfaceInfo
sourcepub fn interface_number(&self) -> u8
pub fn interface_number(&self) -> u8
Identifier for the interface from the bInterfaceNumber
descriptor field.
sourcepub fn class(&self) -> u8
pub fn class(&self) -> u8
Code identifying the standard interface class, from the bInterfaceClass
interface descriptor field.
sourcepub fn subclass(&self) -> u8
pub fn subclass(&self) -> u8
Standard subclass, from the bInterfaceSubClass
interface descriptor field.
sourcepub fn protocol(&self) -> u8
pub fn protocol(&self) -> u8
Standard protocol, from the bInterfaceProtocol
interface descriptor field.
sourcepub fn interface_string(&self) -> Option<&str>
pub fn interface_string(&self) -> Option<&str>
Interface string descriptor value as cached by the OS.
Trait Implementations§
source§impl Clone for InterfaceInfo
impl Clone for InterfaceInfo
source§fn clone(&self) -> InterfaceInfo
fn clone(&self) -> InterfaceInfo
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 moreAuto 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