pub enum DecodeValueError<E> {
ArrayLengthMismatch(&'static str),
InvalidValue(&'static str),
ReaderError(E),
}
Expand description
The errors that can occur when decoding a value in the body of an LCM message.
Variants§
ArrayLengthMismatch(&'static str)
The user attempted to read more or fewer items out of an array than the array contained.
InvalidValue(&'static str)
The value attempted to be decoded was invalid in some way.
ReaderError(E)
The underlying StreamingReader encountered an error.
Trait Implementations§
Source§impl<E: Debug> Debug for DecodeValueError<E>
impl<E: Debug> Debug for DecodeValueError<E>
Source§impl<E> From<DecodeValueError<E>> for DecodeError<E>
impl<E> From<DecodeValueError<E>> for DecodeError<E>
Source§fn from(e: DecodeValueError<E>) -> Self
fn from(e: DecodeValueError<E>) -> Self
Converts to this type from the input type.
Source§impl<RE, WE> From<DecodeValueError<RE>> for CodecError<RE, WE>
impl<RE, WE> From<DecodeValueError<RE>> for CodecError<RE, WE>
Source§fn from(e: DecodeValueError<RE>) -> Self
fn from(e: DecodeValueError<RE>) -> Self
Converts to this type from the input type.
Source§impl<E> From<E> for DecodeValueError<E>
impl<E> From<E> for DecodeValueError<E>
Source§impl<E: PartialEq> PartialEq for DecodeValueError<E>
impl<E: PartialEq> PartialEq for DecodeValueError<E>
impl<E> StructuralPartialEq for DecodeValueError<E>
Auto Trait Implementations§
impl<E> Freeze for DecodeValueError<E>where
E: Freeze,
impl<E> RefUnwindSafe for DecodeValueError<E>where
E: RefUnwindSafe,
impl<E> Send for DecodeValueError<E>where
E: Send,
impl<E> Sync for DecodeValueError<E>where
E: Sync,
impl<E> Unpin for DecodeValueError<E>where
E: Unpin,
impl<E> UnwindSafe for DecodeValueError<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