Trait hyper::server::NewService [] [src]

pub trait NewService where Self::Instance::Request == Self::Request, Self::Instance::Response == Self::Response, Self::Instance::Error == Self::Error {
    type Request;
    type Response;
    type Error;
    type Instance: Service;
    fn new_service(&self) -> Result<Self::Instance, Error>;
}
[]

Creates new Service values.

Associated Types

[]

Requests handled by the service

[]

Responses given by the service

[]

Errors produced by the service

[]

The Service value created by this factory

Required Methods

[]

Create and return a new service value.

Implementors