pub trait Executor: Sized {
type Handle: Handle;
// Required method
fn execute(
self: Arc<Self>,
task: Arc<Task>,
task_list: Arc<TaskList<Self>>,
) -> Self::Handle;
}Required Associated Types§
Required Methods§
fn execute( self: Arc<Self>, task: Arc<Task>, task_list: Arc<TaskList<Self>>, ) -> Self::Handle
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.