[][src]Type Definition smol::stream::Boxed

type Boxed<T> = Pin<Box<dyn Stream<Item = T> + 'static + Send>>;

Type alias for Pin<Box<dyn Stream<Item = T> + Send>>.

Examples

use futures_lite::*;

// These two lines are equivalent:
let s1: stream::Boxed<i32> = stream::once(7).boxed();
let s2: stream::Boxed<i32> = Box::pin(stream::once(7));