Trait workpool::Reducer

source ·
pub trait Reducer<I> {
    type Output;

    // Required methods
    fn reduce(&mut self, input: I);
    fn output(self) -> Self::Output;
}
Expand description

Reducer is responsible for reducing multiple inputs into a single output. This is used by the workpool to condense multiple work outputs to a single output.

Required Associated Types§

Required Methods§

source

fn reduce(&mut self, input: I)

source

fn output(self) -> Self::Output

Implementors§