WorkUnit

Trait WorkUnit 

Source
pub trait WorkUnit {
    // Required method
    fn execute(self: Box<Self>);
}
Expand description

A single, atomic unit of work that one thread should process.

Required Methods§

Source

fn execute(self: Box<Self>)

Executes this task on the current thread.

Implementors§

Source§

impl<F: FnOnce()> WorkUnit for F