pub enum SerialPortIdentity {
Usart0,
Usart1,
Usart2,
Usart3,
}
Expand description
Identifies a particular source of serial port events, i.e. a particular hardware USART, at runtime.
Variants§
Usart0
Universial Synchronous/Asynchronous Receiver/Transmitter 0
Usart1
Universial Synchronous/Asynchronous Receiver/Transmitter 1
Usart2
Universial Synchronous/Asynchronous Receiver/Transmitter 2
Usart3
Universial Synchronous/Asynchronous Receiver/Transmitter 3
Trait Implementations§
source§impl Clone for SerialPortIdentity
impl Clone for SerialPortIdentity
source§fn clone(&self) -> SerialPortIdentity
fn clone(&self) -> SerialPortIdentity
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 PartialEq for SerialPortIdentity
impl PartialEq for SerialPortIdentity
source§fn eq(&self, other: &SerialPortIdentity) -> bool
fn eq(&self, other: &SerialPortIdentity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Persist for SerialPortIdentity
impl Persist for SerialPortIdentity
source§fn load_from<R: Read>(reader: &mut R) -> PersistenceResult<Self>where
Self: Sized,
fn load_from<R: Read>(reader: &mut R) -> PersistenceResult<Self>where
Self: Sized,
Load an instance of this Enum from the given reader
source§fn save_to<W: Write>(&self, writer: &mut W) -> PersistenceResult<()>
fn save_to<W: Write>(&self, writer: &mut W) -> PersistenceResult<()>
Save an instance of this Enum to the given writer.
source§fn load_with<R: Read>(reader: R) -> PersistenceResult<Self>
fn load_with<R: Read>(reader: R) -> PersistenceResult<Self>
Take the given reader and use it to load an instance of this type.
source§impl uDebug for SerialPortIdentity
impl uDebug for SerialPortIdentity
impl Copy for SerialPortIdentity
impl Eq for SerialPortIdentity
impl StructuralPartialEq for SerialPortIdentity
Auto Trait Implementations§
impl Freeze for SerialPortIdentity
impl RefUnwindSafe for SerialPortIdentity
impl Send for SerialPortIdentity
impl Sync for SerialPortIdentity
impl Unpin for SerialPortIdentity
impl UnwindSafe for SerialPortIdentity
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