pub trait Sink<T: PipelineIO>: Data {
// Required method
fn on_data<'life0, 'async_trait>(
&'life0 self,
data: T,
__arg2: Token,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
A Sink
trait defines how data is received from a source and processed.