Expand description
The Source trait and built-in source adapters.
A source produces items one at a time via Source::pull. The
driver pulls until Ok(None), then invokes Source::close before
flushing downstream stages.
Structs§
- Channel
Source std Sourceadapter over anstd::sync::mpsc::Receiver.- FnSource
Sourceadapter over a closure that produces fallible items.- Iter
Source Sourceadapter over anyIntoIterator.- Reader
Source std - Line-buffered
Sourceover anystd::io::Read. Eachpullreturns one line (without the trailing newline).
Enums§
- Infallible
- An error type that no
IterSourceever returns.
Traits§
- Source
- Producer at the head of a pipeline.