#[non_exhaustive]pub enum VerifyStatus {
Ok,
Mismatch {
expected: String,
actual: String,
},
Skipped,
Missing,
}Expand description
Verification status for a single cached file.
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.
Ok
Local SHA256 matches the expected hash from HuggingFace LFS metadata.
Mismatch
Local SHA256 does not match the expected hash — the cached file is
corrupted (bit rot, interrupted write, or upstream blob changed).
Fields
Skipped
File has no LFS metadata (small git-stored file); verification skipped.
Missing
File is absent from the local snapshot directory.
Trait Implementations§
Source§impl Clone for VerifyStatus
impl Clone for VerifyStatus
Source§fn clone(&self) -> VerifyStatus
fn clone(&self) -> VerifyStatus
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 moreAuto Trait Implementations§
impl Freeze for VerifyStatus
impl RefUnwindSafe for VerifyStatus
impl Send for VerifyStatus
impl Sync for VerifyStatus
impl Unpin for VerifyStatus
impl UnsafeUnpin for VerifyStatus
impl UnwindSafe for VerifyStatus
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