pub trait Runnable: Debug {
// Required method
fn spawn(&self) -> TractResult<Box<dyn State>>;
// Provided method
fn run(&self, inputs: TVec<TValue>) -> TractResult<TVec<TValue>> { ... }
}Required Methods§
fn spawn(&self) -> TractResult<Box<dyn State>>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".