[][src]Struct izanami_service::ext::AndThen

pub struct AndThen<S, F> { /* fields omitted */ }

Trait Implementations

impl<S: Debug, F: Debug> Debug for AndThen<S, F>[src]

impl<S, F, R, Req> Service<Req> for AndThen<S, F> where
    S: Service<Req>,
    F: Fn(S::Response) -> R + Clone,
    R: IntoFuture<Error = S::Error>, 
[src]

type Response = R::Item

Responses given by the service.

type Error = S::Error

Errors produced by the service.

type Future = AndThen<S::Future, R, F>

The future response value.

Auto Trait Implementations

impl<S, F> Send for AndThen<S, F> where
    F: Send,
    S: Send

impl<S, F> Sync for AndThen<S, F> where
    F: Sync,
    S: Sync

Blanket Implementations

impl<S, Req> ServiceExt for S where
    S: Service<Req>, 
[src]

fn service_map<F, Res>(self, f: F) -> Map<Self, F> where
    F: Fn(Self::Response) -> Res + Clone
[src]

Maps the response value returned from this service into a different type using the specified function.

fn service_map_err<F, E>(self, f: F) -> MapErr<Self, F> where
    F: Fn(Self::Error) -> E + Clone
[src]

Maps the error value produced by this service into a different type using the specified function.

fn service_err_into<E>(self) -> ErrInto<Self, E> where
    Self::Error: Into<E>, 
[src]

Converts the error value produced by this service into a different type.

fn service_and_then<F, R>(self, f: F) -> AndThen<Self, F> where
    F: Fn(Self::Response) -> R + Clone,
    R: IntoFuture<Error = Self::Error>, 
[src]

Executes the future returned from the specified function when this service returns a response.

fn service_join<S>(self, service: S) -> Join<Self, S> where
    S: Service<Req, Error = Self::Error>,
    Req: Clone
[src]

Combines this service with the the specified one. Read more

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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