pub enum Error {
None,
ParityError,
FramingError,
OverrunError,
RepeatCallError,
ResetError,
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
Aborted
Read or write was aborted early
Trait Implementations
impl Copy for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more