[−][src]Type Definition smol::stream::BoxedLocal
type BoxedLocal<T> = Pin<Box<dyn Stream<Item = T> + 'static>>;
Type alias for Pin<Box<dyn Stream<Item = T>>>
.
Examples
use futures_lite::*; // These two lines are equivalent: let s1: stream::BoxedLocal<i32> = stream::once(7).boxed_local(); let s2: stream::BoxedLocal<i32> = Box::pin(stream::once(7));