FutureMaybeSend

Trait FutureMaybeSend 

Source
pub trait FutureMaybeSend<O>: Future<Output = O> + Send { }
Expand description

Alias for a Future

Unless the compilation target family is wasm, we add Send to the required bounds. For wasm compilation targets there is no Send bound.

We also provide a blank implementation of this trait for all features.

Implementors§

Source§

impl<T, O> FutureMaybeSend<O> for T
where T: Future<Output = O> + Send,