Enum rmp::decode::DecodeStringError
source · pub enum DecodeStringError<'a, E: RmpReadErr = Error> {
InvalidMarkerRead(E),
InvalidDataRead(E),
TypeMismatch(Marker),
BufferSizeTooSmall(u32),
InvalidUtf8(&'a [u8], Utf8Error),
}
Variants§
InvalidMarkerRead(E)
InvalidDataRead(E)
TypeMismatch(Marker)
BufferSizeTooSmall(u32)
The given buffer is not large enough to accumulate the specified amount of bytes.
InvalidUtf8(&'a [u8], Utf8Error)
Trait Implementations§
source§impl<'a, E: Debug + RmpReadErr> Debug for DecodeStringError<'a, E>
impl<'a, E: Debug + RmpReadErr> Debug for DecodeStringError<'a, E>
source§impl<'a, E: RmpReadErr> Display for DecodeStringError<'a, E>
impl<'a, E: RmpReadErr> Display for DecodeStringError<'a, E>
source§impl<'a, E: RmpReadErr> Error for DecodeStringError<'a, E>
impl<'a, E: RmpReadErr> Error for DecodeStringError<'a, E>
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<'a, E: RmpReadErr> From<ValueReadError<E>> for DecodeStringError<'a, E>
impl<'a, E: RmpReadErr> From<ValueReadError<E>> for DecodeStringError<'a, E>
source§fn from(err: ValueReadError<E>) -> DecodeStringError<'a, E>
fn from(err: ValueReadError<E>) -> DecodeStringError<'a, E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, E> Freeze for DecodeStringError<'a, E>where
E: Freeze,
impl<'a, E> RefUnwindSafe for DecodeStringError<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for DecodeStringError<'a, E>where
E: Send,
impl<'a, E> Sync for DecodeStringError<'a, E>where
E: Sync,
impl<'a, E> Unpin for DecodeStringError<'a, E>where
E: Unpin,
impl<'a, E> UnwindSafe for DecodeStringError<'a, 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