pub enum ReadError {
Io(Error),
Frame(Error),
}Available on crate feature
std only.Expand description
What can go wrong while reading frames.
Variants§
Io(Error)
The source failed. TimedOut and WouldBlock (a serial port without data) are
reported too; iterating again continues reading.
Frame(Error)
A frame was damaged (CRC, padding, escape) or larger than the capacity. The reader has already moved on to the next frame.
Trait Implementations§
Source§impl Error for ReadError
impl Error for ReadError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ReadError
impl !UnwindSafe for ReadError
impl Forget for ReadError
impl Freeze for ReadError
impl Move for ReadError
impl Send for ReadError
impl Sync for ReadErrorwhere
Repr: Sync,
impl Unpin for ReadError
impl UnsafeUnpin for ReadErrorwhere
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
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