FirmaConfigCandidateAncestors
Module: resolver::FirmaConfigCandidateAncestors
Section titled “Module: resolver::FirmaConfigCandidateAncestors”Contents
Section titled “Contents”Functions
new- Walk up fromstart, yielding each ancestor’s.firma/candidate
firma_config_loader::resolver::FirmaConfigCandidateAncestors::new
Section titled “firma_config_loader::resolver::FirmaConfigCandidateAncestors::new”Function
Walk up from start, yielding each ancestor’s .firma/ candidate
nearest-first.
Shared by config discovery ([ConfigResolver::resolve_config], which
reads the first existing firma.toml) and the Linux sandbox mask (which
hides every candidate directory). Centralizing the walk keeps both in
lockstep: the mask covers exactly the set discovery can select.
When ceiling is Some, the walk is bounded to that directory
(inclusive), and yields nothing when start is not within it. Pass
None for an unbounded walk to the filesystem root.
fn new(start: &'a Path, ceiling: Option<&'a Path>) -> Self