pub trait ComplexStepBuilderTrait<I: Sized, O: Sized> {
// Required methods
fn reader(
self,
reader: Box<dyn Fn() -> Box<dyn Iterator<Item = I>> + Send>,
) -> Self;
fn processor(
self,
processor: Box<dyn Fn() -> Box<dyn Fn(I) -> O> + Send>,
) -> Self;
fn writer(
self,
writer: Box<dyn Fn() -> Box<dyn Fn(&Vec<O>)> + Send>,
) -> Self;
fn chunk_size(self, chunk_size: usize) -> Self;
}
Expand description
A trait for building complex synchronous steps.
Required Methods§
Sourcefn chunk_size(self, chunk_size: usize) -> Self
fn chunk_size(self, chunk_size: usize) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.