pub enum UartError {
Framing,
Parity,
Overrun,
Break,
}Expand description
A UART read error.
Variants§
Framing
A framing error was detected by the receiver.
Parity
A parity error was detected by the receiver.
Overrun
The receive FIFO overflowed and data was lost.
Break
A break sequence was detected.
Trait Implementations§
Source§impl Error for UartError
impl Error for UartError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Copy for UartError
impl Eq for UartError
impl StructuralPartialEq for UartError
Auto Trait Implementations§
impl Freeze for UartError
impl RefUnwindSafe for UartError
impl Send for UartError
impl Sync for UartError
impl Unpin for UartError
impl UnwindSafe for UartError
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