Skip to main content

HealthService

Trait HealthService 

Source
pub trait HealthService:
    Send
    + Sync
    + DynClone {
    // Required methods
    fn check(
        &mut self,
        _request: Request<HealthCheckRequest>,
    ) -> BoxFuture<'_, Result<Response<HealthCheckResponse>, Status>>;
    fn watch(
        &mut self,
        _request: Request<HealthCheckRequest>,
    ) -> BoxFuture<'_, Result<Response<Streaming<HealthCheckResponse>>, Status>>;
}
Expand description

Trait version of HealthClient

Required Methods§

Implementations on Foreign Types§

Source§

impl<T> HealthService for HealthClient<T>
where T: GrpcService<Body> + Clone + Send + Sync + 'static, T::ResponseBody: Body<Data = Bytes> + Send + 'static, T::Error: Into<StdError>, <T::ResponseBody as Body>::Error: Into<StdError> + Send, <T as GrpcService<Body>>::Future: Send,

Implementors§

Source§

impl<RC> HealthService for RC
where RC: RawGrpcCaller + RawClientProducer + Clone + Unpin,