function_stage

Function function_stage 

Source
pub fn function_stage<F, I, O>(name: &str, f: F) -> Box<dyn PipelineStage>
where F: Fn(I) -> Result<O> + Send + Sync + 'static, I: 'static + Send + Sync, O: 'static + Send + Sync,
Expand description

Create a simple function-based pipeline stage