pub trait BatchExporter: Send + Sync {
// Required method
fn export<'a>(
&'a self,
batch: &'a [AggregatedUsage],
) -> Pin<Box<dyn Future<Output = Result<(), ExportError>> + Send + 'a>>;
}Expand description
Exports a prepared batch away from the request path.
Required Methods§
Sourcefn export<'a>(
&'a self,
batch: &'a [AggregatedUsage],
) -> Pin<Box<dyn Future<Output = Result<(), ExportError>> + Send + 'a>>
fn export<'a>( &'a self, batch: &'a [AggregatedUsage], ) -> Pin<Box<dyn Future<Output = Result<(), ExportError>> + Send + 'a>>
Export every aggregate in batch.
Retrying the same batch must be safe because identifiers are stable.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".