referrerpolicy=no-referrer-when-downgrade

Trait BenchmarkHelper

Source
pub trait BenchmarkHelper<AssetId> {
    // Required methods
    fn staked_asset() -> AssetId;
    fn reward_asset() -> AssetId;
}
Expand description

Benchmark Helper

Required Methods§

Source

fn staked_asset() -> AssetId

Returns the staked asset id.

If the asset does not exist, it will be created by the benchmark.

Source

fn reward_asset() -> AssetId

Returns the reward asset id.

If the asset does not exist, it will be created by the benchmark.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§