Skip to main content

SetupRefresh

Trait SetupRefresh 

Source
pub trait SetupRefresh {
    // Required methods
    fn refresh(
        &self,
        proxy_active: bool,
        skip_rules: bool,
    ) -> Result<(), String>;
    fn print_plan(&self, proxy_active: bool, skip_rules: bool);
    fn print_unconnected_tools_hint(&self);
}
Expand description

The setup refresh an update runs after replacing the binary. Setup sits above the engine, so the updater’s caller supplies it.

Required Methods§

Source

fn refresh(&self, proxy_active: bool, skip_rules: bool) -> Result<(), String>

Re-run setup in refresh-only mode: MCP configs, shell hooks and, unless skip_rules, rules for the recorded or already-connected tools.

Source

fn print_plan(&self, proxy_active: bool, skip_rules: bool)

Print what SetupRefresh::refresh would change, without writing.

Source

fn print_unconnected_tools_hint(&self)

Name installed tools the refresh leaves alone.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§