pub struct DecoderError {
pub error: DecodeError,
pub during: Option<DataBlockId>,
}
Expand description
Error thrown when decoding multiple blocks
This errors main purpose is to provide a way to track which block caused the error
Fields§
§error: DecodeError
The error that was thrown
during: Option<DataBlockId>
The block that caused the error
Trait Implementations§
Source§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<DecoderError> for ItemDecodeError
impl From<DecoderError> for ItemDecodeError
Source§fn from(source: DecoderError) -> Self
fn from(source: DecoderError) -> Self
Converts to this type from the input type.
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