pub trait Processor: Send + Sync {
// Required method
fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
exchange: &'life1 mut Exchange,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
The central abstraction. Processors are composed into pipelines; they
transform the Exchange in place (or route it elsewhere) and return Ok(())
to let the pipeline continue, or an error to trigger the error handler.