Enum Error Copy item path Source pub enum Error {
NoError,
MoreThanOneBitCorrupted,
DataTooLong,
CorrectionFailed,
}Expand description No corruption was found in the provided data. This is an error because the expectation when
using CRC error correction is that the provided data has been corrupted.
We currently only support error correction for one bit. This error indicates that more than
one bit was corrupted in the provided data.
Provided data is too long for the CrcCorrector. Make sure to set CrcCorrector::L
and crc::Algorithm appropriately.
Failed to correct the data. This indicates a bug in the CRC or CRC correction code. It will
only be returned if a correction is applied mistakenly and the integrity double-check has
caught the problem. The data passed in will have been returned to its original state.
Please raise an issue on GitHub if you see this error.
Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more Returns the lower-level source of this error, if any.
Read more 👎 Deprecated since 1.42.0: use the Display impl or to_string()
👎 Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬 This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports.
Read more Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more Returns the argument unchanged.
A constant of the type witness
Proof that Self is the same type as Self::Type,
provides methods for casting between Self and Self::Type.
The same type as Self,
used to emulate type equality bounds (T == U)
with associated type equality constraints
(T: Identity<Type = U>).
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.