pub struct PipelineBuilder<R, L> { /* private fields */ }Expand description
Builder for creating post-processor pipelines.
Implementations§
Source§impl<R, L> PipelineBuilder<R, L>
impl<R, L> PipelineBuilder<R, L>
Sourcepub fn add<P>(self, processor: P) -> Selfwhere
P: PostProcessor<Record = R, Label = L> + 'static,
pub fn add<P>(self, processor: P) -> Selfwhere
P: PostProcessor<Record = R, Label = L> + 'static,
Add a processor to the pipeline.
Sourcepub fn add_if<P>(self, condition: bool, processor: P) -> Selfwhere
P: PostProcessor<Record = R, Label = L> + 'static,
pub fn add_if<P>(self, condition: bool, processor: P) -> Selfwhere
P: PostProcessor<Record = R, Label = L> + 'static,
Conditionally add a processor.
Sourcepub fn build(self) -> PostProcessorPipeline<R, L>
pub fn build(self) -> PostProcessorPipeline<R, L>
Build the pipeline.
Trait Implementations§
Auto Trait Implementations§
impl<R, L> Freeze for PipelineBuilder<R, L>
impl<R, L> !RefUnwindSafe for PipelineBuilder<R, L>
impl<R, L> Send for PipelineBuilder<R, L>
impl<R, L> Sync for PipelineBuilder<R, L>
impl<R, L> Unpin for PipelineBuilder<R, L>
impl<R, L> !UnwindSafe for PipelineBuilder<R, L>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more