[]Type Definition af_lib::prelude::af_core::stream::Boxed

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

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

Examples

use futures_lite::stream::{self, StreamExt};

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