pub enum SerialPortMode {
Asynch(BaudRate, DataBits, Parity, StopBits),
Synch(SynchronousMode),
}
Expand description
The serial communications mode for a serial port peripheral.
Variants§
Asynch(BaudRate, DataBits, Parity, StopBits)
Asynchronous communication
Synch(SynchronousMode)
Synchronous communication
Trait Implementations§
source§impl Clone for SerialPortMode
impl Clone for SerialPortMode
source§fn clone(&self) -> SerialPortMode
fn clone(&self) -> SerialPortMode
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 Display for SerialPortMode
impl Display for SerialPortMode
source§impl PartialEq for SerialPortMode
impl PartialEq for SerialPortMode
source§fn eq(&self, other: &SerialPortMode) -> bool
fn eq(&self, other: &SerialPortMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Persist for SerialPortMode
impl Persist for SerialPortMode
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 SerialPortMode
impl uDebug for SerialPortMode
impl Copy for SerialPortMode
impl Eq for SerialPortMode
impl StructuralPartialEq for SerialPortMode
Auto Trait Implementations§
impl Freeze for SerialPortMode
impl RefUnwindSafe for SerialPortMode
impl Send for SerialPortMode
impl Sync for SerialPortMode
impl Unpin for SerialPortMode
impl UnwindSafe for SerialPortMode
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