pub struct Pipe<P, Args> { /* private fields */ }Expand description
Wrapper struct to adapt a Handler into a Pipeline.
Trait Implementations§
impl<P: Copy, Args: Copy> Copy for Pipe<P, Args>
Auto Trait Implementations§
impl<P, Args> Freeze for Pipe<P, Args>where
P: Freeze,
impl<P, Args> RefUnwindSafe for Pipe<P, Args>where
P: RefUnwindSafe,
Args: RefUnwindSafe,
impl<P, Args> Send for Pipe<P, Args>
impl<P, Args> Sync for Pipe<P, Args>
impl<P, Args> Unpin for Pipe<P, Args>
impl<P, Args> UnsafeUnpin for Pipe<P, Args>where
P: UnsafeUnpin,
impl<P, Args> UnwindSafe for Pipe<P, Args>where
P: UnwindSafe,
Args: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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