pub trait Diagnostics: Send + Sync + 'static {
    // Required methods
    fn check_health<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CheckHealthRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<CheckHealthResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn collect_metrics<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CollectMetricsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<CollectMetricsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with DiagnosticsServer.

Required Methods§

source

fn check_health<'life0, 'async_trait>( &'life0 self, request: Request<CheckHealthRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<CheckHealthResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn collect_metrics<'life0, 'async_trait>( &'life0 self, request: Request<CollectMetricsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<CollectMetricsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<T> Diagnostics for T
where T: DiagnosticsService + Send + Sync + 'static,