pub struct ModuleProvisioning {
pub override_file: Option<PathBuf>,
pub modules: Vec<ProvisionedModule>,
pub orphaned_modules: Vec<OrphanedModule>,
}Expand description
The result of provision_modules: the override path (None for an
undeclared rig) plus the per-module outcome. Default is the
no-declaration case — constructible without touching the network or
the disk, which is what makes threading it through every rig_up/
rig_reset call site (including the SC-1 pinned-vector tests) a
zero-cost no-op.
Fields§
§override_file: Option<PathBuf>The override’s absolute path, when one was written or found.
modules: Vec<ProvisionedModule>The per-module outcome, in ModuleSpec::id order.
orphaned_modules: Vec<OrphanedModule>A module the PRE-overwrite override named that declared no
longer does (Phase 19, D-19-01/D-19-06) — ALWAYS present, empty
for a rig whose provisioning changed nothing, the
ProvisionedModule convention. ign reports this; it never
removes it.
Implementations§
Source§impl ModuleProvisioning
impl ModuleProvisioning
Sourcepub fn override_files(&self) -> &[PathBuf]
pub fn override_files(&self) -> &[PathBuf]
The override file paths as a slice suitable for
crate::rig::compose::up_args’s override_files parameter —
empty for the no-declaration case (SC-1).