pub struct SyncMetaReport {
pub metas_visited: usize,
pub phase1_classifications: Vec<(PathBuf, PathBuf, DestClass)>,
pub phase2_pruned: Vec<PathBuf>,
pub errors: Vec<TreeError>,
}Expand description
Outcome of one sync_meta invocation. Aggregated across every
recursion frame: a sub-meta’s report is folded into its parent’s
report at the end of Phase 3.
Fields§
§metas_visited: usizeNumber of metas processed (this meta + every descendant Phase 3
recursion fired against). Useful for --shallow verification:
recurse: false means metas_visited == 1.
phase1_classifications: Vec<(PathBuf, PathBuf, DestClass)>Per-child Phase 1 verdicts, keyed by parent-relative child path.
(meta_dir, child_dest, classification) — exposed primarily for
tests; downstream callers will project into a status report.
phase2_pruned: Vec<PathBuf>Successful Phase 2 prunes (paths that were removed). Empty when no orphan list was supplied or every orphan refused.
errors: Vec<TreeError>Aggregate of every error encountered across Phases 1, 2, and 3. The walker continues past recoverable errors so the caller sees the full picture in one pass.