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§
Sourcefn refresh(&self, proxy_active: bool, skip_rules: bool) -> Result<(), String>
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.
Sourcefn print_plan(&self, proxy_active: bool, skip_rules: bool)
fn print_plan(&self, proxy_active: bool, skip_rules: bool)
Print what SetupRefresh::refresh would change, without writing.
Sourcefn print_unconnected_tools_hint(&self)
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".