pub trait NewService {
type Request;
type Response;
type Error;
type Instance: Service<Request = Self::Request, Response = Self::Response, Error = Self::Error>;
// Required method
fn new_service(&self) -> Result<Self::Instance>;
}
Expand description
Creates new Service
values.
Required Associated Types§
Required Methods§
Sourcefn new_service(&self) -> Result<Self::Instance>
fn new_service(&self) -> Result<Self::Instance>
Create and return a new service value.