#[non_exhaustive]pub enum VerifyEvent<'a> {
Started {
total: usize,
max_filename_len: usize,
},
FileStart {
index: usize,
total: usize,
filename: &'a str,
size: u64,
has_lfs: bool,
},
FileComplete {
index: usize,
total: usize,
filename: &'a str,
size: u64,
status: &'a VerifyStatus,
},
}Expand description
Streaming progress event emitted by verify_cache_with_progress so
callers can render per-file feedback during a long verification.
Events fire in this order:
VerifyEvent::Started— once, after the metadata fetch completes, before any per-file work begins. Carries the total file count and a pre-computed maximum filename length so callers can size display columns up-front.- For each file in alphabetical order:
VerifyEvent::FileStart— before the per-fileSHA256computation kicks in.VerifyEvent::FileComplete— when the per-file result is known, carrying theVerifyStatusoutcome.
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.
Started
Fired once at the start of the run with summary stats useful for laying out a streamed table or progress display.
Fields
FileStart
A file is about to be verified.
Fields
FileComplete
A file’s verification has completed.
Fields
§
size: u64File size in bytes (matches the size from the corresponding
VerifyEvent::FileStart).
§
status: &'a VerifyStatusThe per-file verification result.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for VerifyEvent<'a>
impl<'a> RefUnwindSafe for VerifyEvent<'a>
impl<'a> Send for VerifyEvent<'a>
impl<'a> Sync for VerifyEvent<'a>
impl<'a> Unpin for VerifyEvent<'a>
impl<'a> UnsafeUnpin for VerifyEvent<'a>
impl<'a> UnwindSafe for VerifyEvent<'a>
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