Trait service_async::Service
source · pub trait Service<Request> {
type Response;
type Error;
type Future<'cx>: Future<Output = Result<Self::Response, Self::Error>>
where Self: 'cx,
Request: 'cx;
// Required method
fn call(&self, req: Request) -> Self::Future<'_>;
}