Skip to main content

BoxStream

Type Alias BoxStream 

Source
pub type BoxStream<'a, T> = Pin<Box<dyn Stream<Item = T> + Send + 'a>>;
Expand description

A boxed stream of T — the return type of every method of a trait the activation macro emits. Send off wasm32, as ItemStream is; on wasm32 the browser’s futures are !Send, so the bound is dropped.

Aliased Type§

#[repr(transparent)]
pub struct BoxStream<'a, T> { /* private fields */ }