pub trait Runtime: Send + 'static {
type JoinError: JoinError + Send;
type JoinHandle: Future<Output = Result<(), Self::JoinError>> + Send;
// Required method
fn spawn<F>(fut: F) -> Self::JoinHandle
where F: Future<Output = ()> + Send + 'static;
}
Expand description
Generic Rust async/await runtime
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.