Skip to main content

ProjectionSource

Type Alias ProjectionSource 

Source
pub type ProjectionSource<Envelope> = Pin<Box<dyn Stream<Item = ProjectionResult<Envelope>> + Send + 'static>>;
Expand description

Owned asynchronous stream materialized for one projection incarnation.

A source may fail after emitting envelopes by yielding an error item. The runtime consumes this stream only from its dedicated source worker.

Aliased Typeยง

#[repr(transparent)]
pub struct ProjectionSource<Envelope> { /* private fields */ }