Skip to main content

UpdateRunner

Trait UpdateRunner 

Source
pub trait UpdateRunner {
    // Required methods
    fn download(&self, url: &str, dest: &Path) -> Result<()>;
    fn run_installer(&self, installer_path: &Path) -> Result<()>;
}
Expand description

Side-effect abstraction for apply_with. The real implementation downloads via HTTP and runs sh / powershell; tests inject a fake that records calls.

Required Methods§

Source

fn download(&self, url: &str, dest: &Path) -> Result<()>

Source

fn run_installer(&self, installer_path: &Path) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§