pub enum JsonParserError {
Io(Error),
Json(Error),
Timeout,
IncompleteData,
InvalidData(String),
}Expand description
Custom error type for JSON parsing operations
Variants§
Trait Implementations§
Source§impl Debug for JsonParserError
impl Debug for JsonParserError
Source§impl Display for JsonParserError
impl Display for JsonParserError
Source§impl Error for JsonParserError
impl Error for JsonParserError
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 From<Error> for JsonParserError
impl From<Error> for JsonParserError
Auto Trait Implementations§
impl Freeze for JsonParserError
impl !RefUnwindSafe for JsonParserError
impl Send for JsonParserError
impl Sync for JsonParserError
impl Unpin for JsonParserError
impl !UnwindSafe for JsonParserError
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