pub trait Runner {
type Context;
// Required method
fn start<F, Fut>(self, f: F) -> Fut::Output
where F: FnOnce(Self::Context) -> Fut,
Fut: Future;
}
Expand description
Interface that any task scheduler must implement to start running tasks.
Required Associated Types§
Required Methods§
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.