Enum utf8::read::BufReadDecoderError
source · 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)>
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