#[non_exhaustive]pub enum SerialClass {
Acm,
Generic,
}
Expand description
Class of USB serial function.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Acm
Abstract Control Model (CDC ACM).
The Linux kernel configuration option CONFIG_USB_CONFIGFS_ACM
must be enabled.
Generic
Generic serial.
The Linux kernel configuration option CONFIG_USB_CONFIGFS_SERIAL
must be enabled.
Trait Implementations§
Source§impl Clone for SerialClass
impl Clone for SerialClass
Source§fn clone(&self) -> SerialClass
fn clone(&self) -> SerialClass
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 SerialClass
impl Debug for SerialClass
Source§impl PartialEq for SerialClass
impl PartialEq for SerialClass
impl Copy for SerialClass
impl Eq for SerialClass
impl StructuralPartialEq for SerialClass
Auto Trait Implementations§
impl Freeze for SerialClass
impl RefUnwindSafe for SerialClass
impl Send for SerialClass
impl Sync for SerialClass
impl Unpin for SerialClass
impl UnwindSafe for SerialClass
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