Trait tokio_service::NewService [−][src]
Creates new Service
values.
Associated Types
type Request
[src]
Requests handled by the service
type Response
[src]
Responses given by the service
type Error
[src]
Errors produced by the service
type Instance: Service<Request = Self::Request, Response = Self::Response, Error = Self::Error>
[src]
The Service
value created by this factory
Required methods
fn new_service(&self) -> Result<Self::Instance>
[src]
Create and return a new service value.
Implementations on Foreign Types
impl<S: NewService + ?Sized> NewService for Arc<S>
[src]
type Request = S::Request
type Response = S::Response
type Error = S::Error
type Instance = S::Instance
fn new_service(&self) -> Result<S::Instance>
[src]
impl<S: NewService + ?Sized> NewService for Rc<S>
[src]
type Request = S::Request
type Response = S::Response
type Error = S::Error
type Instance = S::Instance
fn new_service(&self) -> Result<S::Instance>
[src]
Implementors
impl<F, R> NewService for F where
F: Fn() -> Result<R>,
R: Service,
[src]
F: Fn() -> Result<R>,
R: Service,