pub trait ModelRunner:
Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn run(&self, args: &[String]) -> Result<(), Error>;
}Expand description
One CLI entry per model family. Each per-crate rlx-<family> binary
calls its own run directly; the optional rlx-run multiplexer
registers many ModelRunner implementations.
Required Methods§
fn name(&self) -> &'static str
fn description(&self) -> &'static str
fn run(&self, args: &[String]) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".