pub fn health_reporter() -> (HealthReporter, HealthServer<impl Health>)
Expand description
Creates a HealthReporter
and a linked HealthServer
pair. Together,
these types can be used to serve the gRPC Health Checking service.
A HealthReporter
is used to update the state of gRPC services.
A HealthServer
is a Tonic gRPC server for the grpc.health.v1.Health
,
which can be added to a Tonic runtime using add_service
on the runtime
builder.