Trait MetricsService
pub trait MetricsService:
Send
+ Sync
+ 'static {
// Required method
fn export(
&self,
request: Request<ExportMetricsServiceRequest>,
) -> impl Future<Output = Result<Response<ExportMetricsServiceResponse>, Status>> + Send;
}Available on crate features
grpc and http and opentelemetry and std only.Expand description
Generated trait containing gRPC methods that should be implemented for use with MetricsServiceServer.
Required Methods§
fn export( &self, request: Request<ExportMetricsServiceRequest>, ) -> impl Future<Output = Result<Response<ExportMetricsServiceResponse>, Status>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".