Skip to main content

Source

Trait Source 

Source
pub trait Source: Stream<Item = Result<TextChunk, SourceError>> + Send { }
Expand description

A stream source — anything that produces TextChunks. Implemented by: string buffer (WASM/server), file reader (CLI/batch), HTTP body.

Implementors§

Source§

impl<T> Source for T
where T: Stream<Item = Result<TextChunk, SourceError>> + Send,