pub enum Error<Word> {
Framing(Word),
Noise(Word),
Overrun(Word),
Parity(Word),
}Expand description
A USART error
Variants§
Framing(Word)
Character received with a stop bit missing at the expected location
Noise(Word)
Corrupted character received
Overrun(Word)
Character received, while receive buffer was still in use
Parity(Word)
Parity error detected in received character
Trait Implementations§
impl<Word: Copy> Copy for Error<Word>
impl<Word: Eq> Eq for Error<Word>
impl<Word> StructuralPartialEq for Error<Word>
Auto Trait Implementations§
impl<Word> Freeze for Error<Word>where
Word: Freeze,
impl<Word> RefUnwindSafe for Error<Word>where
Word: RefUnwindSafe,
impl<Word> Send for Error<Word>where
Word: Send,
impl<Word> Sync for Error<Word>where
Word: Sync,
impl<Word> Unpin for Error<Word>where
Word: Unpin,
impl<Word> UnwindSafe for Error<Word>where
Word: UnwindSafe,
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