Enum rmp::decode::DecodeStringError
source · [−]pub enum DecodeStringError<'a> {
InvalidMarkerRead(Error),
InvalidDataRead(Error),
TypeMismatch(Marker),
BufferSizeTooSmall(u32),
InvalidUtf8(&'a [u8], Utf8Error),
}Variants
InvalidMarkerRead(Error)
InvalidDataRead(Error)
TypeMismatch(Marker)
BufferSizeTooSmall(u32)
The given buffer is not large enough to accumulate the specified amount of bytes.
InvalidUtf8(&'a [u8], Utf8Error)
Trait Implementations
sourceimpl<'a> Debug for DecodeStringError<'a>
impl<'a> Debug for DecodeStringError<'a>
sourceimpl<'a> Display for DecodeStringError<'a>
impl<'a> Display for DecodeStringError<'a>
sourceimpl<'a> Error for DecodeStringError<'a>
impl<'a> Error for DecodeStringError<'a>
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl<'a> From<ValueReadError> for DecodeStringError<'a>
impl<'a> From<ValueReadError> for DecodeStringError<'a>
sourcefn from(err: ValueReadError) -> DecodeStringError<'a>
fn from(err: ValueReadError) -> DecodeStringError<'a>
Converts to this type from the input type.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DecodeStringError<'a>
impl<'a> Send for DecodeStringError<'a>
impl<'a> Sync for DecodeStringError<'a>
impl<'a> Unpin for DecodeStringError<'a>
impl<'a> !UnwindSafe for DecodeStringError<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more