pub trait Executor {
// Required methods
fn default_model(&self) -> &Arc<Option<String>> ⓘ;
fn execute(&self, task: Task) -> impl Future<Output = Result<Response>>;
}Expand description
Executes tasks independently of their transport.
An unsuccessful Response is distinct from an execution error. Returned
futures do not promise Send, and the trait is not dyn-compatible.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".