pub enum CodecError {
Encode {
type_name: &'static str,
source: Box<dyn Error + Send + Sync>,
},
Decode {
type_name: &'static str,
source: Box<dyn Error + Send + Sync>,
},
RoundTripMismatch {
type_name: &'static str,
},
}Expand description
Failures at the wire boundary, where typed values become bytes and back.
This is the one place in the system that touches encoding: layers above pass typed values.
Variants§
Trait Implementations§
Source§impl Debug for CodecError
impl Debug for CodecError
Source§impl Display for CodecError
impl Display for CodecError
Source§impl Error for CodecError
impl Error for CodecError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for CodecError
impl !UnwindSafe for CodecError
impl Freeze for CodecError
impl Send for CodecError
impl Sync for CodecError
impl Unpin for CodecError
impl UnsafeUnpin for CodecError
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