#[non_exhaustive]pub struct UsbConfiguration {
pub configuration_value: u8,
pub configuration_name: Option<String>,
pub interfaces: Vec<UsbInterface>,
}
Expand description
A configuration belonging to a USB device.
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.configuration_value: u8
The configuration value of this configuration.
This is equal to the bConfigurationValue
field of the configuration
descriptor provided by the device defining this configuration.
configuration_name: Option<String>
The name provided by the device to describe this configuration.
This is equal to the value of the string descriptor with the index provided
in the iConfiguration
field of the configuration descriptor defining
this configuration.
interfaces: Vec<UsbInterface>
The interfaces available under this configuration.
Trait Implementations§
Source§impl Clone for UsbConfiguration
impl Clone for UsbConfiguration
Source§fn clone(&self) -> UsbConfiguration
fn clone(&self) -> UsbConfiguration
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UsbConfiguration
impl Debug for UsbConfiguration
Source§impl From<&UsbConfiguration> for UsbConfiguration
impl From<&UsbConfiguration> for UsbConfiguration
Source§fn from(conf: &UsbConfiguration) -> Self
fn from(conf: &UsbConfiguration) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UsbConfiguration
impl RefUnwindSafe for UsbConfiguration
impl Send for UsbConfiguration
impl Sync for UsbConfiguration
impl Unpin for UsbConfiguration
impl UnwindSafe for UsbConfiguration
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