pub trait UnaryService<R> {
type Response;
type Future: Future<Item = Response<Self::Response>, Error = Status>;
// Required method
fn call(&mut self, request: Request<R>) -> Self::Future;
}Expand description
A specialization of tower_service::Service.
Existing tower_service::Service implementations with the correct form will
automatically implement UnaryService.