pub enum DecodeUtf8Error {
Utf8(Utf8Error),
Unescape(UnescapeError),
}
Expand description
An error that can occur when decoding the final byte stream to a UTF-8 string.
Variants§
Utf8(Utf8Error)
The unescaped byte sequence was not valid UTF-8.
Unescape(UnescapeError)
An error occurred during the JSON unescaping process itself.
Trait Implementations§
Source§impl Clone for DecodeUtf8Error
impl Clone for DecodeUtf8Error
Source§fn clone(&self) -> DecodeUtf8Error
fn clone(&self) -> DecodeUtf8Error
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DecodeUtf8Error
impl Debug for DecodeUtf8Error
Source§impl Display for DecodeUtf8Error
impl Display for DecodeUtf8Error
Source§impl Error for DecodeUtf8Error
impl Error for DecodeUtf8Error
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()
Source§impl PartialEq for DecodeUtf8Error
impl PartialEq for DecodeUtf8Error
impl Copy for DecodeUtf8Error
impl Eq for DecodeUtf8Error
impl StructuralPartialEq for DecodeUtf8Error
Auto Trait Implementations§
impl Freeze for DecodeUtf8Error
impl RefUnwindSafe for DecodeUtf8Error
impl Send for DecodeUtf8Error
impl Sync for DecodeUtf8Error
impl Unpin for DecodeUtf8Error
impl UnwindSafe for DecodeUtf8Error
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