pub trait BenchmarkConfig {
// Required methods
fn metadata(&self) -> &BenchmarkMetadata;
fn load(&self, source: &Path, path: &Path) -> Result<(), Box<dyn Error>>;
// Provided method
fn validate(&self, path: &Path) -> Result<(), Box<dyn Error>> { ... }
}Expand description
Trait that each benchmark must implement to define its metadata, loading logic, and validation.
Required Methods§
Sourcefn metadata(&self) -> &BenchmarkMetadata
fn metadata(&self) -> &BenchmarkMetadata
Returns the static metadata for this benchmark.