pub trait Source {
type Item;
type Error: StageError;
// Required method
fn pull(&mut self) -> Result<Option<Self::Item>, Self::Error>;
// Provided method
fn close(&mut self) -> Result<(), Self::Error> { ... }
}Expand description
Producer at the head of a pipeline.
Required Associated Types§
Sourcetype Error: StageError
type Error: StageError
Error type the source can return.