pub enum NumValueReadError {
InvalidMarkerRead(Error),
InvalidDataRead(Error),
TypeMismatch(Marker),
OutOfRange,
}
Expand description
An error which can occur when attempting to read a MessagePack numeric 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.
OutOfRange
Out of range integral type conversion attempted.
Trait Implementations§
Source§impl Debug for NumValueReadError
impl Debug for NumValueReadError
Source§impl Display for NumValueReadError
impl Display for NumValueReadError
Source§impl Error for NumValueReadError
impl Error for NumValueReadError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<MarkerReadError> for NumValueReadError
impl From<MarkerReadError> for NumValueReadError
Source§fn from(err: MarkerReadError) -> NumValueReadError
fn from(err: MarkerReadError) -> NumValueReadError
Converts to this type from the input type.
Source§impl From<ValueReadError> for NumValueReadError
impl From<ValueReadError> for NumValueReadError
Source§fn from(err: ValueReadError) -> NumValueReadError
fn from(err: ValueReadError) -> NumValueReadError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NumValueReadError
impl !RefUnwindSafe for NumValueReadError
impl Send for NumValueReadError
impl Sync for NumValueReadError
impl Unpin for NumValueReadError
impl !UnwindSafe for NumValueReadError
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