#[non_exhaustive]pub enum IntegrityOutcome {
Verified,
Failed,
Unsupported,
Incomplete,
NotDeclared,
Weak,
}Expand description
Outcome of checking every declared checksum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Verified
Every declared checksum was computed over the decoded artifact bytes and matched. This is content integrity only, not publisher authenticity.
Failed
At least one computed checksum differed.
Unsupported
No declared algorithm is implemented, so verification was not performed.
Incomplete
Some declared checksums matched and at least one algorithm is unimplemented.
This is not successful verification.
NotDeclared
The artifact format did not declare checksums.
Weak
Every declared checksum was computed and matched, but every one uses a
weak algorithm (see ChecksumAlgorithm::is_weak).
This is not successful verification. ChecksumPolicy::allow_weak
turns this case into Self::Verified.
Trait Implementations§
Source§impl Clone for IntegrityOutcome
impl Clone for IntegrityOutcome
Source§impl Debug for IntegrityOutcome
impl Debug for IntegrityOutcome
impl Eq for IntegrityOutcome
Source§impl PartialEq for IntegrityOutcome
impl PartialEq for IntegrityOutcome
impl StructuralPartialEq for IntegrityOutcome
Auto Trait Implementations§
impl Forget for IntegrityOutcome
impl Freeze for IntegrityOutcome
impl Move for IntegrityOutcome
impl RefUnwindSafe for IntegrityOutcome
impl Send for IntegrityOutcome
impl Sync for IntegrityOutcome
impl Unpin for IntegrityOutcome
impl UnsafeUnpin for IntegrityOutcome
impl UnwindSafe for IntegrityOutcome
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