pub enum Error {
None,
ParityError,
FramingError,
OverrunError,
RepeatCallError,
ResetError,
BreakError,
Aborted,
}
Expand description
The type of error encountered during UART transaction.
Variants§
None
No error occurred and the command completed successfully
ParityError
Parity error during receive
FramingError
Framing error during receive
OverrunError
Overrun error during receive
RepeatCallError
Repeat call of transmit or receive before initial command complete
ResetError
UART hardware was reset
BreakError
UART hardware was disconnected
Aborted
Read or write was aborted early
Trait Implementations§
impl Copy for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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