Trait tokio_service::NewService [] [src]

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

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