[][src]Trait workpool::Reducer

pub trait Reducer<I> {
    type Output;
    fn reduce(&mut self, input: I);
fn output(self) -> Self::Output; }

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.

Associated Types

type Output

Loading content...

Required methods

fn reduce(&mut self, input: I)

fn output(self) -> Self::Output

Loading content...

Implementors

Loading content...