#[non_exhaustive]pub struct UsbAlternateSetting {
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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.alternate_setting: u8The alternate setting value.
interface_class: u8The interface class code.
interface_subclass: u8The interface subclass code.
interface_protocol: u8The interface protocol code.
interface_name: Option<String>Optional name for this interface alternate.
endpoints: Vec<UsbEndpoint>The endpoints belonging to this alternate setting.
Trait Implementations§
Source§impl Clone for UsbAlternateSetting
impl Clone for UsbAlternateSetting
Source§fn clone(&self) -> UsbAlternateSetting
fn clone(&self) -> UsbAlternateSetting
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 moreSource§impl Debug for UsbAlternateSetting
impl Debug for UsbAlternateSetting
Source§impl From<&UsbAlternateInterface> for UsbAlternateSetting
impl From<&UsbAlternateInterface> for UsbAlternateSetting
Source§fn from(alt: &UsbAlternateInterface) -> Self
fn from(alt: &UsbAlternateInterface) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UsbAlternateSetting
impl RefUnwindSafe for UsbAlternateSetting
impl Send for UsbAlternateSetting
impl Sync for UsbAlternateSetting
impl Unpin for UsbAlternateSetting
impl UnwindSafe for UsbAlternateSetting
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