pub trait LocalExecutor: Send + Sync {
// Required method
fn execute(
&self,
capability: &ResolvedCapability,
input: &Value,
) -> Result<LocalExecutionOutput, LocalExecutionFailure>;
}Required Methods§
Sourcefn execute(
&self,
capability: &ResolvedCapability,
input: &Value,
) -> Result<LocalExecutionOutput, LocalExecutionFailure>
fn execute( &self, capability: &ResolvedCapability, input: &Value, ) -> Result<LocalExecutionOutput, LocalExecutionFailure>
Executes one locally selected capability.
§Errors
Returns LocalExecutionFailure when the executor cannot complete the
selected capability.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".