Skip to main content

BatchExporter

Trait BatchExporter 

Source
pub trait BatchExporter: Send + Sync {
    // Required method
    fn export<'a>(&'a self, batch: &'a [AggregatedUsage]) -> ExportFuture<'a>;
}
Expand description

Exports a prepared batch away from the request path.

Required Methods§

Source

fn export<'a>(&'a self, batch: &'a [AggregatedUsage]) -> ExportFuture<'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".

Implementors§