Enum rmp::decode::ValueReadError
source · [−]Expand description
An error which can occur when attempting to read a MessagePack value from the reader.
Variants
InvalidMarkerRead(Error)
Failed to read the marker.
InvalidDataRead(Error)
Failed to read the data.
TypeMismatch(Marker)
The type decoded isn’t match with the expected one.
Trait Implementations
sourceimpl Debug for ValueReadError
impl Debug for ValueReadError
sourceimpl Display for ValueReadError
impl Display for ValueReadError
sourceimpl Error for ValueReadError
impl Error for ValueReadError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl From<MarkerReadError> for ValueReadError
impl From<MarkerReadError> for ValueReadError
sourcefn from(err: MarkerReadError) -> ValueReadError
fn from(err: MarkerReadError) -> ValueReadError
Converts to this type from the input type.
sourceimpl<'a> From<ValueReadError> for DecodeStringError<'a>
impl<'a> From<ValueReadError> for DecodeStringError<'a>
sourcefn from(err: ValueReadError) -> DecodeStringError<'a>
fn from(err: ValueReadError) -> DecodeStringError<'a>
Converts to this type from the input type.
sourceimpl From<ValueReadError> for NumValueReadError
impl From<ValueReadError> for NumValueReadError
sourcefn from(err: ValueReadError) -> NumValueReadError
fn from(err: ValueReadError) -> NumValueReadError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ValueReadError
impl Send for ValueReadError
impl Sync for ValueReadError
impl Unpin for ValueReadError
impl !UnwindSafe for ValueReadError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more