pub trait MetricsService:
Send
+ Sync
+ 'static {
// Required method
fn stream_metrics<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<StreamMetricsMessage>>,
) -> Pin<Box<dyn Future<Output = Result<Response<StreamMetricsResponse>, 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 MetricsServiceServer.
Required Methods§
Sourcefn stream_metrics<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<StreamMetricsMessage>>,
) -> Pin<Box<dyn Future<Output = Result<Response<StreamMetricsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_metrics<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<StreamMetricsMessage>>,
) -> Pin<Box<dyn Future<Output = Result<Response<StreamMetricsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Envoy will connect and send StreamMetricsMessage messages forever. It does not expect any response to be sent as nothing would be done in the case of failure.