pub trait Process<In>: Sized + Clone + Send + Sync + 'static {
    type Out: Send;

    // Required method
    fn process(&self, input: Result<In>) -> Result<Self::Out>;
}
Expand description

Process data into another kind of data.

Required Associated Types§

Required Methods§

source

fn process(&self, input: Result<In>) -> Result<Self::Out>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Process<Vec<Result<ResponseWithShard<RawCoprocessorResponse, Vec<KeyRange>>, Error>>> for DefaultProcessor

§

type Out = Vec<(Vec<u8>, Vec<Range<Key>>)>