#[non_exhaustive]pub enum LockedIntegrity {
Verified,
VerifiedWeakOnly,
NotDeclared,
}Expand description
How an artifact’s declared checksums fared when the lock was written.
Only outcomes that let the artifact into a lock exist: a failed or
incomplete check makes sync fail instead.
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 matched the decoded bytes, and at least one uses a non-weak algorithm. Integrity only, not authenticity.
VerifiedWeakOnly
Every declared checksum matched, but all of them are weak (SHA-1) and the caller accepted that explicitly.
NotDeclared
The format declares no checksum, so nothing was checked.
Implementations§
Trait Implementations§
Source§impl Clone for LockedIntegrity
impl Clone for LockedIntegrity
impl Copy for LockedIntegrity
Source§impl Debug for LockedIntegrity
impl Debug for LockedIntegrity
Source§impl<'de> Deserialize<'de> for LockedIntegrity
impl<'de> Deserialize<'de> for LockedIntegrity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LockedIntegrity
Source§impl Ord for LockedIntegrity
impl Ord for LockedIntegrity
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LockedIntegrity
impl PartialEq for LockedIntegrity
Source§impl PartialOrd for LockedIntegrity
impl PartialOrd for LockedIntegrity
Source§impl Serialize for LockedIntegrity
impl Serialize for LockedIntegrity
impl StructuralPartialEq for LockedIntegrity
Auto Trait Implementations§
impl Forget for LockedIntegrity
impl Freeze for LockedIntegrity
impl Move for LockedIntegrity
impl RefUnwindSafe for LockedIntegrity
impl Send for LockedIntegrity
impl Sync for LockedIntegrity
impl Unpin for LockedIntegrity
impl UnsafeUnpin for LockedIntegrity
impl UnwindSafe for LockedIntegrity
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