pub enum AsyncJsonStreamReaderError {
Io(Error),
JsonError {
error: String,
position: usize,
},
UnexpectedToken {
expected: &'static str,
found: String,
},
InternalState {
message: String,
},
}Expand description
Error types that can occur during streaming JSON parsing.
Variants§
Io(Error)
I/O errors while reading from the stream.
JsonError
JSON parsing errors with context and byte position.
UnexpectedToken
The stream did not match the expected JSON token.
InternalState
Internal invariant violation in the reader.
Trait Implementations§
Source§impl Debug for AsyncJsonStreamReaderError
impl Debug for AsyncJsonStreamReaderError
Source§impl Display for AsyncJsonStreamReaderError
impl Display for AsyncJsonStreamReaderError
Source§impl Error for AsyncJsonStreamReaderError
impl Error for AsyncJsonStreamReaderError
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 Freeze for AsyncJsonStreamReaderError
impl !RefUnwindSafe for AsyncJsonStreamReaderError
impl Send for AsyncJsonStreamReaderError
impl Sync for AsyncJsonStreamReaderError
impl Unpin for AsyncJsonStreamReaderError
impl !UnwindSafe for AsyncJsonStreamReaderError
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