[][src]Trait hyper::service::MakeService

pub trait MakeService<Ctx> {
    type ReqBody: Payload;
    type ResBody: Payload;
    type Error: Into<Box<dyn StdError + Send + Sync>>;
    type Service: Service<ReqBody = Self::ReqBody, ResBody = Self::ResBody, Error = Self::Error>;
    type Future: Future<Item = Self::Service, Error = Self::MakeError>;
    type MakeError: Into<Box<dyn StdError + Send + Sync>>;
    fn make_service(&mut self, ctx: Ctx) -> Self::Future;
}

An asynchronous constructor of Services.

Associated Types

The Payload body of the http::Request.

The Payload body of the http::Response.

The error type that can be returned by Services.

The resolved Service from new_service().

The future returned from new_service of a Service.

The error type that can be returned when creating a new Service.

Required Methods

Create a new Service.

Implementors

impl<N, Ctx> MakeService<Ctx> for N where
    N: NewService, 
[src]