[−][src]Trait hyper::service::MakeService  
An asynchronous constructor of Services.
Associated Types
type ReqBody: Payload
The Payload body of the http::Request.
type ResBody: Payload
The Payload body of the http::Response.
type Error: Into<Box<dyn StdError + Send + Sync>>
The error type that can be returned by Services.
type Service: Service<ReqBody = Self::ReqBody, ResBody = Self::ResBody, Error = Self::Error>
The resolved Service from new_service().
type Future: Future<Item = Self::Service, Error = Self::MakeError>
The future returned from new_service of a Service.
type MakeError: Into<Box<dyn StdError + Send + Sync>>
The error type that can be returned when creating a new Service.
Required Methods
fn make_service(&mut self, ctx: Ctx) -> Self::Future
Create a new Service.