pub enum Error {
InvalidMarkerRead(Error),
InvalidDataRead(Error),
DepthLimitExceeded,
}
Expand description
This type represents all possible errors that can occur when deserializing a value.
Variants§
InvalidMarkerRead(Error)
Error while reading marker byte.
InvalidDataRead(Error)
Error while reading data.
DepthLimitExceeded
The depth limit MAX_DEPTH
was exceeded.
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
source§impl From<MarkerReadError> for Error
impl From<MarkerReadError> for Error
source§fn from(err: MarkerReadError) -> Error
fn from(err: MarkerReadError) -> Error
Converts to this type from the input type.
source§impl From<ValueReadError> for Error
impl From<ValueReadError> for Error
source§fn from(err: ValueReadError) -> Error
fn from(err: ValueReadError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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