referrerpolicy=no-referrer-when-downgrade

Trait BenchmarkingConfig

Source
pub trait BenchmarkingConfig {
    const VOTERS: [u32; 2];
    const TARGETS: [u32; 2];
    const ACTIVE_VOTERS: [u32; 2];
    const DESIRED_TARGETS: [u32; 2];
    const SNAPSHOT_MAXIMUM_VOTERS: u32;
    const MINER_MAXIMUM_VOTERS: u32;
    const MAXIMUM_TARGETS: u32;
}
Expand description

Configuration for the benchmarks of the pallet.

Required Associated Constants§

Source

const VOTERS: [u32; 2]

Range of voters.

Source

const TARGETS: [u32; 2]

Range of targets.

Source

const ACTIVE_VOTERS: [u32; 2]

Range of active voters.

Source

const DESIRED_TARGETS: [u32; 2]

Range of desired targets.

Source

const SNAPSHOT_MAXIMUM_VOTERS: u32

Maximum number of voters expected. This is used only for memory-benchmarking of snapshot.

Source

const MINER_MAXIMUM_VOTERS: u32

Maximum number of voters expected. This is used only for memory-benchmarking of miner.

Source

const MAXIMUM_TARGETS: u32

Maximum number of targets expected. This is used only for memory-benchmarking.

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§