pub enum ScanProgress {
Show 15 variants
Discovering {
count: usize,
},
DiscoveryDone {
total: usize,
},
CollectingGitHistory,
GitHistoryDone,
Scanning {
done: usize,
total: usize,
},
ScanningDone,
BuildingModuleGraph,
ModuleGraphDone,
AnalyzingProjectFiles,
ProjectFilesDone,
SubmoduleDetected {
path: String,
},
ScanningSubmodule {
path: String,
name: String,
},
ScanningSubmoduleDone {
path: String,
},
SubmoduleUpToDate {
path: String,
hash: String,
},
SubmoduleSkipped {
path: String,
reason: String,
},
}Expand description
Progress events emitted by scan_project.
The callback receives these events at key pipeline stages, allowing the CLI to drive progress indicators (spinner, progress bar, etc.).
Variants§
Discovering
File discovery phase: count files found so far.
DiscoveryDone
Discovery complete. total files will be scanned.
CollectingGitHistory
Git history collection phase is starting.
GitHistoryDone
Git history collection complete.
Scanning
A file has been processed (parsed or skipped). done of total.
ScanningDone
Scanning (parse) phase complete.
BuildingModuleGraph
Persisting IR and building module graph (steps 4-7).
ModuleGraphDone
Module graph build complete.
AnalyzingProjectFiles
Analyzing manifests and documentation (steps 8-9).
ProjectFilesDone
Manifest/docs analysis complete.
SubmoduleDetected
A submodule was detected in .gitmodules.
path is the relative mount path (e.g. "vendor/lib").
ScanningSubmodule
A submodule scan is starting.
path is the relative mount path, name is the short directory name.
ScanningSubmoduleDone
A submodule scan completed successfully.
path is the relative mount path.
SubmoduleUpToDate
A submodule is up-to-date (commit hash unchanged since last scan).
path is the relative mount path, hash is the current commit hash.
SubmoduleSkipped
A submodule was skipped (not initialized, excluded, etc.).
path is the relative mount path, reason explains why.
Trait Implementations§
Source§impl Clone for ScanProgress
impl Clone for ScanProgress
Source§fn clone(&self) -> ScanProgress
fn clone(&self) -> ScanProgress
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more