pub struct PipelineT<F, S, M = ()> {
pub first: F,
pub second: S,
/* private fields */
}
Expand description
A pipeline type where two fields have a parent-child/first-second relationship
Fields§
§first: F
§second: S
Implementations§
Trait Implementations§
Source§impl<S, F> ReadyService for Pipeline<S, F, Map>where
S: ReadyService,
impl<S, F> ReadyService for Pipeline<S, F, Map>where
S: ReadyService,
Source§impl<S, F> ReadyService for Pipeline<S, F, MapErr>where
S: ReadyService,
impl<S, F> ReadyService for Pipeline<S, F, MapErr>where
S: ReadyService,
Source§impl<S, S1> ReadyService for Pipeline<S, S1, AndThen>where
S: ReadyService,
S1: ReadyService,
impl<S, S1> ReadyService for Pipeline<S, S1, AndThen>where
S: ReadyService,
S1: ReadyService,
type Ready = Pipeline<<S as ReadyService>::Ready, <S1 as ReadyService>::Ready>
async fn ready(&self) -> <Pipeline<S, S1, AndThen> as ReadyService>::Ready
Source§impl<S, T> ReadyService for Pipeline<S, T, AsyncFn>where
S: ReadyService,
impl<S, T> ReadyService for Pipeline<S, T, AsyncFn>where
S: ReadyService,
Source§impl<F, T, Arg> Service<Arg> for Pipeline<F, T, BuildEnclosed>
impl<F, T, Arg> Service<Arg> for Pipeline<F, T, BuildEnclosed>
Source§type Response = <T as Service<Result<<F as Service<Arg>>::Response, <F as Service<Arg>>::Error>>>::Response
type Response = <T as Service<Result<<F as Service<Arg>>::Response, <F as Service<Arg>>::Error>>>::Response
The Ok part of output future.
Source§type Error = <T as Service<Result<<F as Service<Arg>>::Response, <F as Service<Arg>>::Error>>>::Error
type Error = <T as Service<Result<<F as Service<Arg>>::Response, <F as Service<Arg>>::Error>>>::Error
The Err part of output future.
async fn call( &self, arg: Arg, ) -> Result<<Pipeline<F, T, BuildEnclosed> as Service<Arg>>::Response, <Pipeline<F, T, BuildEnclosed> as Service<Arg>>::Error>
Source§impl<SF, Arg, SF1> Service<Arg> for Pipeline<SF, SF1, BuildAndThen>
impl<SF, Arg, SF1> Service<Arg> for Pipeline<SF, SF1, BuildAndThen>
Source§type Response = Pipeline<<SF as Service<Arg>>::Response, <SF1 as Service<Arg>>::Response, AndThen>
type Response = Pipeline<<SF as Service<Arg>>::Response, <SF1 as Service<Arg>>::Response, AndThen>
The Ok part of output future.
async fn call( &self, arg: Arg, ) -> Result<<Pipeline<SF, SF1, BuildAndThen> as Service<Arg>>::Response, <Pipeline<SF, SF1, BuildAndThen> as Service<Arg>>::Error>
Source§impl<S, Req, S1> Service<Req> for Pipeline<S, S1, AndThen>
impl<S, Req, S1> Service<Req> for Pipeline<S, S1, AndThen>
Auto Trait Implementations§
impl<F, S, M> Freeze for Pipeline<F, S, M>
impl<F, S, M> RefUnwindSafe for Pipeline<F, S, M>
impl<F, S, M> Send for Pipeline<F, S, M>
impl<F, S, M> Sync for Pipeline<F, S, M>
impl<F, S, M> Unpin for Pipeline<F, S, M>
impl<F, S, M> UnwindSafe for Pipeline<F, S, M>
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<S, Arg> ServiceExt<Arg> for Swhere
S: Service<Arg>,
impl<S, Arg> ServiceExt<Arg> for Swhere
S: Service<Arg>,
Source§fn enclosed<T>(self, build: T) -> Pipeline<Self, T, BuildEnclosed>
fn enclosed<T>(self, build: T) -> Pipeline<Self, T, BuildEnclosed>
Enclose Self with given
T as Service<<Self as Service<_>>::Response>>
. In other word T
would take Self’s Service::Response
type as it’s generic argument of Service<_>
impl.Source§fn enclosed_fn<T, Req, O>(
self,
func: T,
) -> Pipeline<Self, AsyncFn<T>, BuildEnclosed>
fn enclosed_fn<T, Req, O>( self, func: T, ) -> Pipeline<Self, AsyncFn<T>, BuildEnclosed>
Function version of Self::enclosed method.
Source§fn map<F, Res, ResMap>(self, mapper: F) -> Pipeline<Self, Map<F>, BuildEnclosed>
fn map<F, Res, ResMap>(self, mapper: F) -> Pipeline<Self, Map<F>, BuildEnclosed>
Mutate
<<Self::Response as Service<Req>>::Future as Future>::Output
type with given
closure.