pub type ItemStream<'a> = Pin<Box<dyn Stream<Item = Result<StreamItem, TransportError>> + Send + 'a>>;Expand description
A boxed stream of wire items.
Send is required off wasm32 (so native callers can tokio::spawn a
client stream) and not required on wasm32, where the browser futures a
transport must build on (JsFuture, ReadableStreamDefaultReader) are
!Send by construction.
Aliased Typeยง
#[repr(transparent)]pub struct ItemStream<'a> { /* private fields */ }