[][src]Struct izanami_service::ext::ErrInto

pub struct ErrInto<S, E> { /* fields omitted */ }

Trait Implementations

impl<S: Debug, E: Debug> Debug for ErrInto<S, E>[src]

impl<S, E, Req> Service<Req> for ErrInto<S, E> where
    S: Service<Req>,
    S::Error: Into<E>, 
[src]

type Response = S::Response

Responses given by the service.

type Error = E

Errors produced by the service.

type Future = MapErr<S::Future, fn(_: S::Error) -> E>

The future response value.

Auto Trait Implementations

impl<S, E> Send for ErrInto<S, E> where
    S: Send

impl<S, E> Sync for ErrInto<S, E> where
    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]