[][src]Struct async_svc::ThenSvc

pub struct ThenSvc<S1, S2, Int, Res> { /* fields omitted */ }

Service1(Response) -> Intermediate => Service2(Intermediate) -> Response

Implementations

impl<S1, S2, Int, Res> ThenSvc<S1, S2, Int, Res>[src]

pub fn new(svc1: S1, svc2: S2) -> Self[src]

Trait Implementations

impl<S1, S2, Req, Int, Res> Svc<Req> for ThenSvc<S1, S2, Int, Res> where
    S1: Svc<Req, Res = Int>,
    S2: Svc<Int, Res = Res>, 
[src]

type Res = Res

Output type.

type Fut = ThenSvcFut<S1, S2, Req, Int, Res>

Response future.

impl<'pin, S1, S2, Int, Res> Unpin for ThenSvc<S1, S2, Int, Res> where
    __ThenSvc<'pin, S1, S2, Int, Res>: Unpin
[src]

Auto Trait Implementations

impl<S1, S2, Int, Res> RefUnwindSafe for ThenSvc<S1, S2, Int, Res> where
    Int: RefUnwindSafe,
    Res: RefUnwindSafe,
    S1: RefUnwindSafe,
    S2: RefUnwindSafe

impl<S1, S2, Int, Res> Send for ThenSvc<S1, S2, Int, Res> where
    Int: Send,
    Res: Send,
    S1: Send,
    S2: Send

impl<S1, S2, Int, Res> Sync for ThenSvc<S1, S2, Int, Res> where
    Int: Sync,
    Res: Sync,
    S1: Sync,
    S2: Sync

impl<S1, S2, Int, Res> UnwindSafe for ThenSvc<S1, S2, Int, Res> where
    Int: UnwindSafe,
    Res: UnwindSafe,
    S1: UnwindSafe,
    S2: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.