[−][src]Trait izanami_service::MakeService
A trait representing an asynchronous factory of Service
s.
Associated Types
type Response
The response type returned by Service
.
type Error
The error type returned by Service
.
type Service: Service<Request, Response = Self::Response, Error = Self::Error>
The type of services created by this factory.
type MakeError
The type of errors that occur while creating Service
.
type Future: Future<Item = Self::Service, Error = Self::MakeError>
The type of Future
returned from make_service
.
Required methods
fn make_service(&mut self, ctx: Ctx) -> Self::Future
Creates a Future
that will return a value of Service
.
Implementors
impl<S, Ctx, Request> MakeService<Ctx, Request> for S where
S: Service<Ctx>,
S::Response: Service<Request>,
[src]
S: Service<Ctx>,
S::Response: Service<Request>,