pub trait RemoteExecutor: Send + Sync {
// Required methods
fn execute(
&self,
machine_id: &str,
command: &str,
working_dir: Option<&str>,
) -> Result<RemoteOutput>;
fn ping(&self, machine_id: &str) -> Result<bool>;
fn executor_type(&self) -> &str;
}Expand description
Trait for remote execution backends.
Required Methods§
Sourcefn execute(
&self,
machine_id: &str,
command: &str,
working_dir: Option<&str>,
) -> Result<RemoteOutput>
fn execute( &self, machine_id: &str, command: &str, working_dir: Option<&str>, ) -> Result<RemoteOutput>
Execute a command on a remote machine.
Sourcefn executor_type(&self) -> &str
fn executor_type(&self) -> &str
Get the executor type name (e.g., “ssh”, “relay”).