[][src]Trait izanami_service::IntoService

pub trait IntoService<T, Request> {
    type Response;
    type Error;
    type Service: Service<Request, Response = Self::Response, Error = Self::Error>;
    fn into_service(self, ctx: T) -> Self::Service;
}

A trait to be converted into an asynchronous function.

Associated Types

type Response

The response type of Service.

type Error

The error type of Service.

type Service: Service<Request, Response = Self::Response, Error = Self::Error>

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

Loading content...

Required methods

fn into_service(self, ctx: T) -> Self::Service

Cosumes itself and convert it into a Service.

Loading content...

Implementors

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

type Response = S::Response

type Error = S::Error

type Service = S

Loading content...