pub trait Processor: Closer {
// Required method
fn process<'life0, 'async_trait>(
&'life0 self,
message: Message,
) -> Pin<Box<dyn Future<Output = Result<MessageBatch, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Processor is the processing module trait utilized to accept a single crate::Message and provide one to many additional messages through crate::MessageBatch
Required Methods§
Sourcefn process<'life0, 'async_trait>(
&'life0 self,
message: Message,
) -> Pin<Box<dyn Future<Output = Result<MessageBatch, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process<'life0, 'async_trait>(
&'life0 self,
message: Message,
) -> Pin<Box<dyn Future<Output = Result<MessageBatch, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
process a givent crate::Message and return the transformed, one to many messages to continue on the pipeline.