pub enum ReadError<D> {
Io(Error),
Decode(D),
}Expand description
An error that can occur when reading and decoding from a buffered reader.
Variants§
Io(Error)
An I/O error occurred while reading from the reader.
Decode(D)
The decoder encountered an error while parsing the data.
Trait Implementations§
Source§impl<D> Error for ReadError<D>
Available on crate feature std only.
impl<D> Error for ReadError<D>
Available on crate feature
std only.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<D> Freeze for ReadError<D>where
D: Freeze,
impl<D> !RefUnwindSafe for ReadError<D>
impl<D> Send for ReadError<D>where
D: Send,
impl<D> Sync for ReadError<D>where
D: Sync,
impl<D> Unpin for ReadError<D>where
D: Unpin,
impl<D> !UnwindSafe for ReadError<D>
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