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