pub enum DecoderError {
Header(HeaderError),
Block(BlockError),
}
Expand description
An error returned by Decoder
or DecoderReader
Variants§
Header(HeaderError)
An error was returned by the Header
decoder
Block(BlockError)
An error was returned by the Block
decoder
Trait Implementations§
Source§impl Clone for DecoderError
impl Clone for DecoderError
Source§fn clone(&self) -> DecoderError
fn clone(&self) -> DecoderError
Returns a copy 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 DecoderError
impl Debug for DecoderError
Source§impl Display for DecoderError
impl Display for DecoderError
Source§impl Error for DecoderError
impl Error for DecoderError
1.30.0 · 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()
Source§impl From<BlockError> for DecoderError
impl From<BlockError> for DecoderError
Source§fn from(err: BlockError) -> Self
fn from(err: BlockError) -> Self
Converts to this type from the input type.
Source§impl From<DecoderError> for Error
impl From<DecoderError> for Error
Source§fn from(err: DecoderError) -> Error
fn from(err: DecoderError) -> Error
Converts to this type from the input type.
Source§impl From<HeaderError> for DecoderError
impl From<HeaderError> for DecoderError
Source§fn from(err: HeaderError) -> Self
fn from(err: HeaderError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DecoderError
impl PartialEq for DecoderError
impl StructuralPartialEq for DecoderError
Auto Trait Implementations§
impl Freeze for DecoderError
impl RefUnwindSafe for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl UnwindSafe for DecoderError
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