pub enum PipelineE<F, S> {
First(F),
Second(S),
}
Expand description
A pipeline type where two variants have a either/or relationship
Variants§
Implementations§
Trait Implementations§
Source§impl<F, S> Error for Pipeline<F, S>
impl<F, S> Error for Pipeline<F, S>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<F, S> From<Infallible> for Pipeline<F, S>
impl<F, S> From<Infallible> for Pipeline<F, S>
Source§fn from(e: Infallible) -> Pipeline<F, S>
fn from(e: Infallible) -> Pipeline<F, S>
Converts to this type from the input type.
Source§impl<E> From<Pipeline<Box<dyn Any + Send>, E>> for Error
impl<E> From<Pipeline<Box<dyn Any + Send>, E>> for Error
Source§fn from(e: CatchUnwindError<E>) -> Self
fn from(e: CatchUnwindError<E>) -> Self
Converts to this type from the input type.
Source§impl<F, S> ReadyService for Pipeline<F, S>where
F: ReadyService,
S: ReadyService,
impl<F, S> ReadyService for Pipeline<F, S>where
F: ReadyService,
S: ReadyService,
type Ready = Pipeline<<F as ReadyService>::Ready, <S as ReadyService>::Ready>
async fn ready(&self) -> <Pipeline<F, S> as ReadyService>::Ready
Source§impl<R, F, S> Responder<R> for Pipeline<F, S>
impl<R, F, S> Responder<R> for Pipeline<F, S>
Auto Trait Implementations§
impl<F, S> Freeze for Pipeline<F, S>
impl<F, S> RefUnwindSafe for Pipeline<F, S>where
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<F, S> Send for Pipeline<F, S>
impl<F, S> Sync for Pipeline<F, S>
impl<F, S> Unpin for Pipeline<F, S>
impl<F, S> UnwindSafe for Pipeline<F, S>where
F: UnwindSafe,
S: 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<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.