Trait Procs

Source
pub trait Procs<D>: Send + 'static {
    // Required method
    fn proc(&mut self, context: &mut Proc, data: &D);

    // Provided method
    fn end_of_procs(&mut self) { ... }
}
Expand description

Data processor in a Stage.

Required Methods§

Source

fn proc(&mut self, context: &mut Proc, data: &D)

Processes data within a context.

Provided Methods§

Source

fn end_of_procs(&mut self)

Invoked after the final data in a set of data has been passed to the processor.

Once invoked, there is no guarantee (proc)Procs::proc will be invoked again in the future.

Implementors§

Source§

impl<T, D> Procs<D> for T
where T: FnMut(&mut Proc, &D) + Send + 'static,