#[non_exhaustive]pub struct UsbAlternateInterface {
pub alternate_setting: u8,
pub interface_class: u8,
pub interface_subclass: u8,
pub interface_protocol: u8,
pub interface_name: Option<String>,
pub endpoints: Vec<UsbEndpoint>,
}
Expand description
An alternate setting containing detailed interface information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.alternate_setting: u8
The alternate setting number of this interface.
This is equal to the bAlternateSetting
field of the interface descriptor defining this interface.
interface_class: u8
The class of this interface.
This is equal to the bInterfaceClass
field of the interface descriptor defining this interface.
interface_subclass: u8
The subclass of this interface.
This is equal to the bInterfaceSubClass
field of the interface descriptor defining this interface.
interface_protocol: u8
The protocol supported by this interface.
This is equal to the bInterfaceProtocol
field of the interface descriptor defining this interface.
interface_name: Option<String>
The name of the interface, if one is provided by the device.
This is the value of the string descriptor with the index specified by the iInterface
field of
the interface descriptor defining this interface.
endpoints: Vec<UsbEndpoint>
The endpoints belonging to this alternate setting.
Trait Implementations§
Source§impl Clone for UsbAlternateInterface
impl Clone for UsbAlternateInterface
Source§fn clone(&self) -> UsbAlternateInterface
fn clone(&self) -> UsbAlternateInterface
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more