Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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

Available on non-target_family=wasm only.