Trait ModelService
pub trait ModelService: Debug {
// Required methods
fn request(&mut self, request: ModelRequest) -> Result<(), String>;
fn poll(&mut self) -> Result<Vec<ModelReply>, String>;
}Expand description
Optional off-thread executor. Errors permanently select the inline path. Implementations wake the canvas when a reply or failure arrives.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".