pub trait TaskExecutorExt: TaskExecutor {
// Required method
fn spawn<T>(
&self,
fut: Pin<Box<dyn Future<Output = Result<T, VortexError>> + Send>>,
) -> Pin<Box<dyn Future<Output = Result<T, VortexError>> + Send>>
where T: 'static + Send;
}
Required Methods§
fn spawn<T>(
&self,
fut: Pin<Box<dyn Future<Output = Result<T, VortexError>> + Send>>,
) -> Pin<Box<dyn Future<Output = Result<T, VortexError>> + Send>>where
T: 'static + Send,
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.