[][src]Trait ranagrams::factory::WorkerFun

pub trait WorkerFun<I: Send + 'static>: Send + Sync + 'static {
    pub fn improve(&self, _: I) -> Vec<I>;
pub fn inspect(&self, _: &I) -> bool; }

The résumé (trait) required of worker threads who wish to work in the factory. The general pattern of work is that workers inspect an item (I) to see whether it can be shipped. If not, they improve it, making some number of improved items.

Required methods

pub fn improve(&self, _: I) -> Vec<I>[src]

pub fn inspect(&self, _: &I) -> bool[src]

Loading content...

Implementors

Loading content...