[][src]Struct izanami_http::service::IntoService

pub struct IntoService<S> { /* fields omitted */ }

A wrapper for HttpServices for lifting the instance into a Service.

Trait Implementations

impl<S: Debug> Debug for IntoService<S>[src]

impl<S, RequestBody> Service<Request<RequestBody>> for IntoService<S> where
    S: HttpService<RequestBody>,
    RequestBody: HttpBody
[src]

type Response = Response<S::ResponseBody>

Responses given by the service.

type Error = S::Error

Errors produced by the service.

type Future = S::Respond

The future response value.

Auto Trait Implementations

impl<S> Send for IntoService<S> where
    S: Send

impl<S> Sync for IntoService<S> where
    S: Sync

Blanket Implementations

impl<S, ReqBd, ResBd> HttpService for S where
    ReqBd: HttpBody,
    ResBd: HttpBody,
    S: Service<Request<ReqBd>, Response = Response<ResBd>>, 
[src]

type ResponseBody = ResBd

The type of HTTP response returned from respond.

type Error = <S as Service<Request<ReqBd>>>::Error

The error type which will be returned from this service.

type Respond = <S as Service<Request<ReqBd>>>::Future

The future that handles an incoming HTTP request.

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]

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
    Req: Clone,
    S: Service<Req, Error = Self::Error>, 
[src]

Combines this service with the the specified one. Read more

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

type Response = <S as Service<Req>>::Response

The response type of Service.

type Error = <S as Service<Req>>::Error

The error type of Service.

type Service = S

The type of Service obtained by converting the value of this type.