Processor

Trait Processor 

Source
pub trait Processor<K, I, O = (), E = String>
where E: Display,
{ // Required method fn process( &self, key: K, inputs: impl Iterator<Item = I> + Send, ) -> impl Future<Output = Result<Vec<O>, E>> + Send; }
Expand description

Process a batch of inputs for a given key.

Required Methods§

Source

fn process( &self, key: K, inputs: impl Iterator<Item = I> + Send, ) -> impl Future<Output = Result<Vec<O>, E>> + Send

Process the batch.

The order of the outputs in the returned Vec must be the same as the order of the inputs in the given iterator.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§