pub trait Processor: Send + Sync {
// Required methods
fn process<'life0, 'async_trait>(
&'life0 self,
batch: MessageBatch,
) -> Pin<Box<dyn Future<Output = Result<Vec<MessageBatch>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Characteristic interface of the processor component