Enum avr_oxide::devices::serialport::SerialState
source · pub enum SerialState {
ReadAvailable,
SerialCommsError,
BreakDetected,
ReadBufferOverflow,
}
Expand description
State of the serial port sent with Oxide events.
Variants§
ReadAvailable
There is data waiting in the buffer for someone to read it
SerialCommsError
A serial error has been detected (framing, parity etc.)
BreakDetected
A break condition on the receive line has been detected
ReadBufferOverflow
The receive buffer has overflowed (data was not consumed quickly enough…)
Trait Implementations§
source§impl Clone for SerialState
impl Clone for SerialState
source§fn clone(&self) -> SerialState
fn clone(&self) -> SerialState
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 SerialState
impl PartialEq for SerialState
source§fn eq(&self, other: &SerialState) -> bool
fn eq(&self, other: &SerialState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Persist for SerialState
impl Persist for SerialState
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 SerialState
impl uDebug for SerialState
impl Copy for SerialState
impl Eq for SerialState
impl StructuralPartialEq for SerialState
Auto Trait Implementations§
impl Freeze for SerialState
impl RefUnwindSafe for SerialState
impl Send for SerialState
impl Sync for SerialState
impl Unpin for SerialState
impl UnwindSafe for SerialState
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