pub struct Alt<P> {
pub pipelines: P,
}Expand description
A wrapper for alternative pipeline execution.
Fields§
§pipelines: PTrait Implementations§
Source§impl<I, O, P1, P2, P3> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3)>
impl<I, O, P1, P2, P3> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3)>
Source§impl<I, O, P1, P2, P3, P4> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3, P4)>
impl<I, O, P1, P2, P3, P4> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3, P4)>
Source§impl<I, O, P1, P2, P3, P4, P5> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3, P4, P5)>
impl<I, O, P1, P2, P3, P4, P5> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3, P4, P5)>
Source§impl<I, O, P1, P2, P3, P4, P5, P6> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3, P4, P5, P6)>
impl<I, O, P1, P2, P3, P4, P5, P6> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3, P4, P5, P6)>
Source§impl<I, O, P1, P2, P3, P4, P5, P6, P7> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3, P4, P5, P6, P7)>
impl<I, O, P1, P2, P3, P4, P5, P6, P7> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3, P4, P5, P6, P7)>
Source§impl<I, O, P1, P2, P3, P4, P5, P6, P7, P8> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3, P4, P5, P6, P7, P8)>
impl<I, O, P1, P2, P3, P4, P5, P6, P7, P8> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3, P4, P5, P6, P7, P8)>
Source§impl<I, O, P1, P2, P3, P4, P5, P6, P7, P8, P9> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3, P4, P5, P6, P7, P8, P9)>where
I: Clone + Send + Sync + 'static,
O: Send + 'static,
P1: Pipeline<I, PResult<O>>,
P2: Pipeline<I, PResult<O>>,
P3: Pipeline<I, PResult<O>>,
P4: Pipeline<I, PResult<O>>,
P5: Pipeline<I, PResult<O>>,
P6: Pipeline<I, PResult<O>>,
P7: Pipeline<I, PResult<O>>,
P8: Pipeline<I, PResult<O>>,
P9: Pipeline<I, PResult<O>>,
impl<I, O, P1, P2, P3, P4, P5, P6, P7, P8, P9> Pipeline<I, Result<O, PipelineError>> for Alt<(P1, P2, P3, P4, P5, P6, P7, P8, P9)>where
I: Clone + Send + Sync + 'static,
O: Send + 'static,
P1: Pipeline<I, PResult<O>>,
P2: Pipeline<I, PResult<O>>,
P3: Pipeline<I, PResult<O>>,
P4: Pipeline<I, PResult<O>>,
P5: Pipeline<I, PResult<O>>,
P6: Pipeline<I, PResult<O>>,
P7: Pipeline<I, PResult<O>>,
P8: Pipeline<I, PResult<O>>,
P9: Pipeline<I, PResult<O>>,
Auto Trait Implementations§
impl<P> Freeze for Alt<P>where
P: Freeze,
impl<P> RefUnwindSafe for Alt<P>where
P: RefUnwindSafe,
impl<P> Send for Alt<P>where
P: Send,
impl<P> Sync for Alt<P>where
P: Sync,
impl<P> Unpin for Alt<P>where
P: Unpin,
impl<P> UnsafeUnpin for Alt<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Alt<P>where
P: UnwindSafe,
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
Source§impl<F, I, O, Args> HandlerExt<I, O, Args> for Fwhere
F: Handler<I, O, Args>,
impl<F, I, O, Args> HandlerExt<I, O, Args> for Fwhere
F: Handler<I, O, Args>,
fn pipe(self) -> Pipe<Self, Args>where
Self: Sized,
Source§fn connect<O2, G, Args2>(
self,
g: G,
) -> Connect<Pipe<Self, Args>, Pipe<G, Args2>, I, O, O2>
fn connect<O2, G, Args2>( self, g: G, ) -> Connect<Pipe<Self, Args>, Pipe<G, Args2>, I, O, O2>
Connects two pipelines together. Output of the first becomes the input of the second. Read more
Source§fn pullback<I2, H, Args2>(
self,
handler: H,
) -> Pullback<Pipe<Self, Args>, Pipe<H, Args2>, I2, I, O>
fn pullback<I2, H, Args2>( self, handler: H, ) -> Pullback<Pipe<Self, Args>, Pipe<H, Args2>, I2, I, O>
Pulls back the domain of the pipeline.
This allows a pipeline defined on
I to be used for input I2 given a mapping I2 -> I.
The mapping function is now a full Handler (async, supports DI). Read moreSource§fn lift<I2>(
self,
) -> Pullback<Pipe<Self, Args>, Pipe<LiftHandler<I, I2>, (Input<I2>,)>, I2, I, O>
fn lift<I2>( self, ) -> Pullback<Pipe<Self, Args>, Pipe<LiftHandler<I, I2>, (Input<I2>,)>, I2, I, O>
Lifts the domain requirement to anything that can be converted into the original input.
Uses
From / Into trait. Read moreSource§fn extend<O2, F>(self, map: F) -> Extend<Pipe<Self, Args>, F, I, O, O2>
fn extend<O2, F>(self, map: F) -> Extend<Pipe<Self, Args>, F, I, O, O2>
Extends the output of the pipeline by applying a transformation. Read more