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)>
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<'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