pub enum SerialError {
BufferOverflow,
FrameError,
ParityError,
AutoBaudDetectFail,
Break,
}
Expand description
Serial communication errors
Variants§
BufferOverflow
The receive or transmit buffer overflowed
FrameError
We received something other than a stop bit when we were expecting one
ParityError
The received data was framed correctly, but the calculated parity is wrong.
AutoBaudDetectFail
In automatic baud-rate detection, we cannot determine an accurate rate
Break
A Break was detected
Trait Implementations§
source§impl Clone for SerialError
impl Clone for SerialError
source§fn clone(&self) -> SerialError
fn clone(&self) -> SerialError
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 SerialError
impl PartialEq for SerialError
source§fn eq(&self, other: &SerialError) -> bool
fn eq(&self, other: &SerialError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Persist for SerialError
impl Persist for SerialError
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 SerialError
impl uDebug for SerialError
impl Copy for SerialError
impl Eq for SerialError
impl StructuralPartialEq for SerialError
Auto Trait Implementations§
impl Freeze for SerialError
impl RefUnwindSafe for SerialError
impl Send for SerialError
impl Sync for SerialError
impl Unpin for SerialError
impl UnwindSafe for SerialError
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