pub trait Runtime {
type Spawner: Spawner;
// Required methods
fn spawner(&self) -> Self::Spawner;
fn exec<Fut>(&mut self, fut: Fut) -> Fut::Output
where Fut: Future;
}
Expand description
The Runtime for driving the application.
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.