pub enum ChecksumError {
ChecksumMismatch {
expected: String,
actual: String,
},
InvalidHash(String),
UnsupportedAlgorithm(String),
}Expand description
Typed checksum-record validation failure.
Variants§
ChecksumMismatch
The expected and observed exact bytes have different digests.
InvalidHash(String)
A digest is not exactly 64 hexadecimal digits.
UnsupportedAlgorithm(String)
Only the maintained SHA-256 algorithm is accepted.
Trait Implementations§
Source§impl Debug for ChecksumError
impl Debug for ChecksumError
Source§impl Display for ChecksumError
impl Display for ChecksumError
Source§impl Error for ChecksumError
impl Error for ChecksumError
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<ChecksumError> for AttemptJournalRecordError
impl From<ChecksumError> for AttemptJournalRecordError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for ConsistencyRequirementError
impl From<ChecksumError> for ConsistencyRequirementError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for DownloadJournalRecordError
impl From<ChecksumError> for DownloadJournalRecordError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for IcSnapshotUploadError
impl From<ChecksumError> for IcSnapshotUploadError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for InventoryRecordError
impl From<ChecksumError> for InventoryRecordError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for OperationPlanError
impl From<ChecksumError> for OperationPlanError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for RestoreReferenceError
impl From<ChecksumError> for RestoreReferenceError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for RestoreSafetyRequirementError
impl From<ChecksumError> for RestoreSafetyRequirementError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for IcSnapshotArtifactError
impl From<ChecksumError> for IcSnapshotArtifactError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for DownloadIntegrityError
impl From<ChecksumError> for DownloadIntegrityError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for LocalRestoreArtifactError
impl From<ChecksumError> for LocalRestoreArtifactError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for PersistenceError
impl From<ChecksumError> for PersistenceError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChecksumError
impl RefUnwindSafe for ChecksumError
impl Send for ChecksumError
impl Sync for ChecksumError
impl Unpin for ChecksumError
impl UnsafeUnpin for ChecksumError
impl UnwindSafe for ChecksumError
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