Skip to main content

RawEventStream

Type Alias RawEventStream 

Source
pub type RawEventStream = Pin<Box<dyn Stream<Item = Result<Value, Box<dyn Error + Sync + Send>>> + Send>>;
Expand description

A stream of wire-format event objects in one format — the unframed body of an SSE response. The serving layer frames each Value (e.g. as an SSE data:/event: block).

Aliased Type§

pub struct RawEventStream { /* private fields */ }