pub enum BufReadDecoderError<'a> {
    InvalidByteSequence(&'a [u8]),
    Io(Error),
}Variants§
InvalidByteSequence(&'a [u8])
Represents one UTF-8 error in the byte stream.
In lossy decoding, each such error should be replaced with U+FFFD.
(See BufReadDecoder::next_lossy and BufReadDecoderError::lossy.)
Io(Error)
An I/O error from the underlying byte stream
Implementations§
Trait Implementations§
Source§impl<'a> Debug for BufReadDecoderError<'a>
 
impl<'a> Debug for BufReadDecoderError<'a>
Source§impl<'a> Display for BufReadDecoderError<'a>
 
impl<'a> Display for BufReadDecoderError<'a>
Source§impl<'a> Error for BufReadDecoderError<'a>
 
impl<'a> Error for BufReadDecoderError<'a>
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<'a> Freeze for BufReadDecoderError<'a>
impl<'a> !RefUnwindSafe for BufReadDecoderError<'a>
impl<'a> Send for BufReadDecoderError<'a>
impl<'a> Sync for BufReadDecoderError<'a>
impl<'a> Unpin for BufReadDecoderError<'a>
impl<'a> !UnwindSafe for BufReadDecoderError<'a>
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