pub trait Sink: Send {
    // Required method
    fn on_element<'life0, 'async_trait>(
        &'life0 mut self,
        record: Record,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    // Provided method
    fn on_watermark<'life0, 'async_trait>(
        &'life0 mut self,
        _wm: Watermark,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}Expand description
A terminal sink that receives records (and optional watermarks).