#[non_exhaustive]pub enum AnalysisProgress {
Started {
estimated_entries: Option<usize>,
},
EntryAnalyzed {
path: PathBuf,
},
}Expand description
Deliberately a separate, smaller enum from crate::progress::Progress
rather than a reuse: Progress (and the Handle<T> it’s threaded
through) live behind the operations feature, which analyze
doesn’t require — see AnalysisHandle’s doc comment for the same
reasoning applied one level up.
#[non_exhaustive] for the same reason as Progress: adding a
variant later shouldn’t be a breaking change for an exhaustive match.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Started
Always emitted first, exactly once. estimated_entries is Some
only when AnalyzeBuilder::estimate_total(true) was set — getting
a count requires a full extra pass over the tree (stat-ing every
file against the same filters as the real walk), so it’s None
by default rather than paying that cost unconditionally.
EntryAnalyzed
Emitted once per matched entry (after filters, not per entry walked) as the tree is scanned.
Trait Implementations§
Source§impl Clone for AnalysisProgress
impl Clone for AnalysisProgress
Source§fn clone(&self) -> AnalysisProgress
fn clone(&self) -> AnalysisProgress
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for AnalysisProgress
impl RefUnwindSafe for AnalysisProgress
impl Send for AnalysisProgress
impl Sync for AnalysisProgress
impl Unpin for AnalysisProgress
impl UnsafeUnpin for AnalysisProgress
impl UnwindSafe for AnalysisProgress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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