Module boxed

Source
Expand description

Re-exports boxed versions of Future and Stream traits that are Send in non-wasm and !Send in wasm.

If you don’t want this type of target-dependend Send and !Send, use stream::Boxed/stream::BoxedLocal and future::Boxed/future::BoxedLocal.

Type Aliases§

BoxFuture
Type alias for Pin<Box<dyn Future<Output = T> + Send + 'static>>.
BoxStream
Type alias for Pin<Box<dyn Stream<Item = T> + Send + 'static>>.