EventStream

Type Alias EventStream 

Source
pub type EventStream<E> = Pin<Box<dyn Stream<Item = E> + Send + Sync>>;
Expand description

A type alias for a pinned, boxed stream of events.

This stream is capable of handling items of any type that implements the Stream trait, and it is both sendable across threads and synchronizable between threads.

§Type Parameters

  • E: The type of the items in the stream.

Aliased Type§

pub struct EventStream<E> { /* private fields */ }