pub trait RuntimeAdapter: Send + Sync {
// Required methods
fn execute(&self, script: &str, input: &Value) -> Result<Value, String>;
fn name(&self) -> &str;
}Expand description
Trait for executing a PCard binding script.
Each runtime type (shell, python, node, llm, echo, noop, math) implements
this trait. The dispatcher looks up the runtime by name and calls execute.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".