Trait finchers_runtime::service::NewHttpService [] [src]

pub trait NewHttpService {
    type RequestBody;
    type ResponseBody;
    type Error;
    type Service: HttpService<RequestBody = Self::RequestBody, ResponseBody = Self::ResponseBody, Error = Self::Error>;
    type InitError;
    type Future: Future<Item = Self::Service, Error = Self::InitError>;
    fn new_service(&self) -> Self::Future;
}

A factory of an asynchronous HTTP service.

Associated Types

The type of message body in the request.

The type of message body in the response.

The type of error which will be returned from the service.

The type of HttpService to be created by this factory.

The type of error which will occur during creating an HTTP service.

A Future which will be returned from new_service and resolved as a Service.

Required Methods

Create a new instance of HttpService asynchronously.

Implementations on Foreign Types

impl<S: NewHttpService> NewHttpService for Box<S>
[src]

[src]

impl<S: NewHttpService> NewHttpService for Arc<S>
[src]

[src]

Implementors