pub trait CommandExecutor: Send + Sync {
// Required method
fn execute_command<'life0, 'life1, 'async_trait>(
&'life0 self,
command: &'life1 str,
) -> Pin<Box<dyn Future<Output = CommandResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait for executing shell commands during skill preprocessing.
Commands in !…`` syntax would be executed before the skill content
is sent to the model, replacing each placeholder with command output.
This path is intentionally not reached at runtime today; see the trust-gate note at the top of this module.
Required Methods§
fn execute_command<'life0, 'life1, 'async_trait>(
&'life0 self,
command: &'life1 str,
) -> Pin<Box<dyn Future<Output = CommandResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".