pub trait ScriptHost {
// Required methods
async fn call(&mut self, cmd: &str, args: Value) -> Value;
fn must_stop(&self) -> bool;
fn cut_off(&mut self, cmd: &str);
}Expand description
The phone side of a run.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".