Trait tokio_service::NewService
source · [−]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>;
}
Expand description
Creates new Service
values.
Associated Types
Required methods
fn new_service(&self) -> Result<Self::Instance>
fn new_service(&self) -> Result<Self::Instance>
Create and return a new service value.