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§
Source§impl<'a> Debug for DecodeStringError<'a>
impl<'a> Debug for DecodeStringError<'a>
Source§impl<'a> Display for DecodeStringError<'a>
impl<'a> Display for DecodeStringError<'a>
Source§impl<'a> Error for DecodeStringError<'a>
impl<'a> Error for DecodeStringError<'a>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl<'a> From<ValueReadError> for DecodeStringError<'a>
impl<'a> From<ValueReadError> for DecodeStringError<'a>
Source§fn from(err: ValueReadError) -> DecodeStringError<'a>
fn from(err: ValueReadError) -> DecodeStringError<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for DecodeStringError<'a>
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§
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