Skip to main content

AsyncEngineStream

Trait AsyncEngineStream 

Source
pub trait AsyncEngineStream<T: Data>:
    Stream<Item = T>
    + AsyncEngineContextProvider
    + Send { }
Expand description

A streaming asynchronous engine operation.

This trait combines Stream semantics with context provider capabilities, representing a continuous async operation that produces multiple messages over time.

  • Output side: wrapped as EngineStream<T> = crate::pipeline::ManyOut<T> — the stream of response chunks an engine emits.
  • Input side: same EngineStream<T> shape, exposed as crate::pipeline::ManyIn<T> for documentary clarity at the call site.

ResponseStream is the canonical concrete implementor; RequestStream is a type alias of it for the input side.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§