Skip to main content

BenchmarkSink

Trait BenchmarkSink 

Source
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§

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§