Skip to main content

Module source

Module source 

Source
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§

ChannelSourcestd
Source adapter over an std::sync::mpsc::Receiver.
FnSource
Source adapter over a closure that produces fallible items.
IterSource
Source adapter over any IntoIterator.
ReaderSourcestd
Line-buffered Source over any std::io::Read. Each pull returns one line (without the trailing newline).

Enums§

Infallible
An error type that no IterSource ever returns.

Traits§

Source
Producer at the head of a pipeline.