pub trait CloudMetrics: Send + Sync {
// Required method
fn export_metrics<'life0, 'life1, 'async_trait>(
&'life0 self,
metrics: &'life1 [Metric],
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
// Provided method
fn export_metric<'life0, 'life1, 'async_trait>(
&'life0 self,
metric: &'life1 Metric,
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait { ... }
}Expand description
Unified trait for cloud metrics export.