#[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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more