//! The [`Collector`] trait: a source that produces a batch of records per tick.
use error;
use Future;
/// A source polled by a [`Pipeline`](crate::Pipeline) on an interval.
///
/// Each tick the pipeline calls [`collect`](Collector::collect) once and
/// hands the resulting records to the sink stack. Errors are logged and the
/// pipeline keeps ticking — a failed poll is not fatal.