pub enum NumValueReadError<E: RmpReadErr = Error> {
InvalidMarkerRead(E),
InvalidDataRead(E),
TypeMismatch(Marker),
OutOfRange,
}
Expand description
An error which can occur when attempting to read a MessagePack numeric value from the reader.
Variants§
InvalidMarkerRead(E)
Failed to read the marker.
InvalidDataRead(E)
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<E: Debug + RmpReadErr> Debug for NumValueReadError<E>
impl<E: Debug + RmpReadErr> Debug for NumValueReadError<E>
Source§impl<E: RmpReadErr> Display for NumValueReadError<E>
impl<E: RmpReadErr> Display for NumValueReadError<E>
Source§impl Error for NumValueReadError
impl Error for NumValueReadError
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<E: RmpReadErr> From<MarkerReadError<E>> for NumValueReadError<E>
impl<E: RmpReadErr> From<MarkerReadError<E>> for NumValueReadError<E>
Source§fn from(err: MarkerReadError<E>) -> NumValueReadError<E>
fn from(err: MarkerReadError<E>) -> NumValueReadError<E>
Converts to this type from the input type.
Source§impl<E: RmpReadErr> From<ValueReadError<E>> for NumValueReadError<E>
impl<E: RmpReadErr> From<ValueReadError<E>> for NumValueReadError<E>
Source§fn from(err: ValueReadError<E>) -> NumValueReadError<E>
fn from(err: ValueReadError<E>) -> NumValueReadError<E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for NumValueReadError<E>where
E: Freeze,
impl<E> RefUnwindSafe for NumValueReadError<E>where
E: RefUnwindSafe,
impl<E> Send for NumValueReadError<E>where
E: Send,
impl<E> Sync for NumValueReadError<E>where
E: Sync,
impl<E> Unpin for NumValueReadError<E>where
E: Unpin,
impl<E> UnwindSafe for NumValueReadError<E>where
E: UnwindSafe,
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