Enum rmp::decode::NumValueReadError
source · 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)>
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