Skip to main content

ApplyExecutor

Trait ApplyExecutor 

Source
pub trait ApplyExecutor: Send + Sync {
    // Required method
    fn apply_component(
        &self,
        component_id: &str,
        proposed_version: &str,
    ) -> Result<(), String>;
}
Expand description

Trait for executing a single component update.

Implementations can invoke shell scripts, Rust-native installers, or be mocked for testing.

Required Methods§

Source

fn apply_component( &self, component_id: &str, proposed_version: &str, ) -> Result<(), String>

Apply a single component update.

Returns Ok(()) on success, Err with a descriptive message on failure.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§