pub enum LongEccDecodeError {
BufferError(BufferError),
FastValidate(LongEccFastValidateError),
IntegrityCheckFailed,
InvalidCodeword,
HeaderDecode(LongEccHeaderFromByteSliceError),
ReadDataError,
ReadParityError,
RSDecodeError(RSDecodeError),
TryFromIntError(TryFromIntError),
}Expand description
Errors of long ECC decoding.
Variants§
BufferError(BufferError)
Propagated from buffer allocation.
FastValidate(LongEccFastValidateError)
Fast validation failed
IntegrityCheckFailed
The checksum still mismatches after error correction.
InvalidCodeword
The codeword is structurally invalid.
HeaderDecode(LongEccHeaderFromByteSliceError)
Propagated from header parsing.
ReadDataError
The data bytes recorded in the header lie outside the buffer.
ReadParityError
The parity bytes recorded in the header lie outside the buffer.
RSDecodeError(RSDecodeError)
Propagated from single-codeword decoding of a segment.
TryFromIntError(TryFromIntError)
A header length field does not fit the platform’s usize.
Trait Implementations§
Source§impl Clone for LongEccDecodeError
impl Clone for LongEccDecodeError
Source§fn clone(&self) -> LongEccDecodeError
fn clone(&self) -> LongEccDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LongEccDecodeError
impl Debug for LongEccDecodeError
Source§impl Display for LongEccDecodeError
impl Display for LongEccDecodeError
Source§impl Error for LongEccDecodeError
impl Error for LongEccDecodeError
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<BufferError> for LongEccDecodeError
impl From<BufferError> for LongEccDecodeError
Source§fn from(source: BufferError) -> Self
fn from(source: BufferError) -> Self
Converts to this type from the input type.
Source§impl From<LongEccDecodeError> for DecodeError
impl From<LongEccDecodeError> for DecodeError
Source§fn from(source: LongEccDecodeError) -> Self
fn from(source: LongEccDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<LongEccFastValidateError> for LongEccDecodeError
impl From<LongEccFastValidateError> for LongEccDecodeError
Source§fn from(source: LongEccFastValidateError) -> Self
fn from(source: LongEccFastValidateError) -> Self
Converts to this type from the input type.
Source§impl From<LongEccHeaderFromByteSliceError> for LongEccDecodeError
impl From<LongEccHeaderFromByteSliceError> for LongEccDecodeError
Source§fn from(source: LongEccHeaderFromByteSliceError) -> Self
fn from(source: LongEccHeaderFromByteSliceError) -> Self
Converts to this type from the input type.
Source§impl From<RSDecodeError> for LongEccDecodeError
impl From<RSDecodeError> for LongEccDecodeError
Source§fn from(source: RSDecodeError) -> Self
fn from(source: RSDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for LongEccDecodeError
impl From<TryFromIntError> for LongEccDecodeError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LongEccDecodeError
impl RefUnwindSafe for LongEccDecodeError
impl Send for LongEccDecodeError
impl Sync for LongEccDecodeError
impl Unpin for LongEccDecodeError
impl UnsafeUnpin for LongEccDecodeError
impl UnwindSafe for LongEccDecodeError
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