Skip to main content

ModelStream

Type Alias ModelStream 

Source
pub type ModelStream<'a, M> = Pin<Box<dyn Stream<Item = Result<M>> + Send + 'a>>;
Expand description

A boxed stream of decoded models, as returned by Select::stream and Selector::stream.

Boxing makes the stream Unpin, so callers can drive it with TryStreamExt::try_next in a while let loop without pinning it first.

Aliased Typeยง

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