pub enum DecodingError {
AuthenticationFailed {
symbol_id: SymbolId,
},
InsufficientSymbols {
received: usize,
needed: usize,
},
MatrixInversionFailed {
reason: String,
},
BlockTimeout {
sbn: u8,
elapsed: Duration,
},
InconsistentMetadata {
sbn: u8,
details: String,
},
SymbolSizeMismatch {
expected: u16,
actual: usize,
},
}Expand description
Errors produced by the decoding pipeline.
Variants§
AuthenticationFailed
Authentication failed for a symbol.
InsufficientSymbols
Not enough symbols to decode.
MatrixInversionFailed
Matrix inversion failed during decoding.
BlockTimeout
Block timed out before decoding completed.
InconsistentMetadata
Inconsistent metadata for a block or object.
SymbolSizeMismatch
Symbol size mismatch.
Trait Implementations§
Source§impl Debug for DecodingError
impl Debug for DecodingError
Source§impl Display for DecodingError
impl Display for DecodingError
Source§impl Error for DecodingError
impl Error for DecodingError
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<DecodingError> for Error
impl From<DecodingError> for Error
Source§fn from(err: DecodingError) -> Self
fn from(err: DecodingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecodingError
impl RefUnwindSafe for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl UnwindSafe for DecodingError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).