pub enum Utf8StreamParserError {
InvalidUtf8 {
valid_up_to: usize,
error_len: usize,
},
IncompleteUtf8AtEof,
}Expand description
Error returned by Utf8StreamParser when streamed bytes are not valid UTF-8.
Variants§
InvalidUtf8
The provided bytes contain an invalid UTF-8 sequence.
Fields
IncompleteUtf8AtEof
EOF was reached with a buffered partial UTF-8 code point.
Trait Implementations§
Source§impl Clone for Utf8StreamParserError
impl Clone for Utf8StreamParserError
Source§fn clone(&self) -> Utf8StreamParserError
fn clone(&self) -> Utf8StreamParserError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Utf8StreamParserError
impl Debug for Utf8StreamParserError
Source§impl Display for Utf8StreamParserError
impl Display for Utf8StreamParserError
impl Eq for Utf8StreamParserError
Source§impl Error for Utf8StreamParserError
impl Error for Utf8StreamParserError
1.30.0 · 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 Utf8StreamParserError
impl PartialEq for Utf8StreamParserError
impl StructuralPartialEq for Utf8StreamParserError
Auto Trait Implementations§
impl Freeze for Utf8StreamParserError
impl RefUnwindSafe for Utf8StreamParserError
impl Send for Utf8StreamParserError
impl Sync for Utf8StreamParserError
impl Unpin for Utf8StreamParserError
impl UnsafeUnpin for Utf8StreamParserError
impl UnwindSafe for Utf8StreamParserError
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