Trait workpool::Worker

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

    // Required method
    fn run(&self, input: I) -> Self::Output;
}

Required Associated Types§

Required Methods§

source

fn run(&self, input: I) -> Self::Output

Implementors§

source§

impl<T, I, O> Worker<I> for Twhere T: Fn(I) -> O,

§

type Output = O