pub trait Runner:
Send
+ Sync
+ 'static {
// Required method
fn block_on(
&self,
fut: Pin<Box<dyn Future<Output = ()>>>,
) -> Result<(), Box<dyn Any + Send>>;
}Required Methods§
fn block_on( &self, fut: Pin<Box<dyn Future<Output = ()>>>, ) -> Result<(), Box<dyn Any + Send>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".