pub trait BenchmarkSink: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn on_event_batch(
&self,
batch: &BenchmarkEventBatch,
) -> Result<BenchmarkSinkStatus, BenchmarkSinkError>;
// Provided method
fn flush(&self) -> Result<BenchmarkSinkReport, BenchmarkSinkError> { ... }
}Required Methods§
fn name(&self) -> &str
fn on_event_batch( &self, batch: &BenchmarkEventBatch, ) -> Result<BenchmarkSinkStatus, BenchmarkSinkError>
Provided Methods§
fn flush(&self) -> Result<BenchmarkSinkReport, BenchmarkSinkError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".