pub trait HealthService: RawClientLikewhere
<Self as RawClientLike>::SvcType: GrpcService<Body> + Send + Clone + 'static,
<<Self as RawClientLike>::SvcType as GrpcService<Body>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<Self as RawClientLike>::SvcType as GrpcService<Body>>::Error: Into<StdError>,
<<Self as RawClientLike>::SvcType as GrpcService<Body>>::Future: Send,
<<<Self as RawClientLike>::SvcType as GrpcService<Body>>::ResponseBody as Body>::Error: Into<StdError> + Send,{
// Provided methods
fn check(
&mut self,
request: impl IntoRequest<HealthCheckRequest>,
) -> BoxFuture<'_, Result<Response<HealthCheckResponse>, Status>> { ... }
fn watch(
&mut self,
request: impl IntoRequest<HealthCheckRequest>,
) -> BoxFuture<'_, Result<Response<Streaming<HealthCheckResponse>>, Status>> { ... }
}Expand description
Trait version of the generated client with modifications to attach appropriate metric labels or whatever else to requests
Provided Methods§
Sourcefn check(
&mut self,
request: impl IntoRequest<HealthCheckRequest>,
) -> BoxFuture<'_, Result<Response<HealthCheckResponse>, Status>>
fn check( &mut self, request: impl IntoRequest<HealthCheckRequest>, ) -> BoxFuture<'_, Result<Response<HealthCheckResponse>, Status>>
Sourcefn watch(
&mut self,
request: impl IntoRequest<HealthCheckRequest>,
) -> BoxFuture<'_, Result<Response<Streaming<HealthCheckResponse>>, Status>>
fn watch( &mut self, request: impl IntoRequest<HealthCheckRequest>, ) -> BoxFuture<'_, Result<Response<Streaming<HealthCheckResponse>>, Status>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.