pub struct NukePlan {
pub paths: Vec<PathBuf>,
pub mcp_files: Vec<PathBuf>,
pub purge_binary: bool,
}Expand description
Everything a nuke will tear down. Computed from the environment; pure (no mutation) so it can be printed for –dry-run / confirm.
Fields§
§paths: Vec<PathBuf>Directories to delete (only those that currently exist).
mcp_files: Vec<PathBuf>Host MCP config files we’ll de-register the wire entry from
(only files that currently exist).
purge_binary: boolTrue if the wire binary + shell lines should also go (–purge).
Implementations§
Source§impl NukePlan
impl NukePlan
Sourcepub fn compute(purge: bool) -> Result<Self>
pub fn compute(purge: bool) -> Result<Self>
Compute the plan. purge = remove binary + shell lines too.
Sourcepub fn execute(&self) -> Result<NukeReport>
pub fn execute(&self) -> Result<NukeReport>
Perform the teardown. Best-effort: a failure on one item is
recorded in warnings and the rest proceed (a nuke that
half-aborts leaves a confusing machine — the whole point is to
finish the job; cf. rustup #1072).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NukePlan
impl RefUnwindSafe for NukePlan
impl Send for NukePlan
impl Sync for NukePlan
impl Unpin for NukePlan
impl UnsafeUnpin for NukePlan
impl UnwindSafe for NukePlan
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
Mutably borrows from an owned value. Read more