pub enum CodecError {
UnsupportedVersion,
BadEncoding,
}Expand description
Error type for codec failures
Variants§
UnsupportedVersion
The doughnut version is unsupported by the current codec
BadEncoding
Invalid encoded format found while decoding
Trait Implementations§
Source§impl Clone for CodecError
impl Clone for CodecError
Source§fn clone(&self) -> CodecError
fn clone(&self) -> CodecError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodecError
impl Debug for CodecError
Source§impl PartialEq for CodecError
impl PartialEq for CodecError
impl Eq for CodecError
impl StructuralPartialEq for CodecError
Auto Trait Implementations§
impl Freeze for CodecError
impl RefUnwindSafe for CodecError
impl Send for CodecError
impl Sync for CodecError
impl Unpin for CodecError
impl UnwindSafe 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