referrerpolicy=no-referrer-when-downgrade

Trait pallet_ranked_collective::BenchmarkSetup

source ·
pub trait BenchmarkSetup<AccountId> {
    // Required method
    fn ensure_member(acc: &AccountId);
}
Expand description

Helper functions to setup benchmarking.

Required Methods§

source

fn ensure_member(acc: &AccountId)

Ensure that this member is registered correctly.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<AccountId> BenchmarkSetup<AccountId> for ()

source§

fn ensure_member(acc: &AccountId)

Ensure that this member is registered correctly.

source§

impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0,)

source§

fn ensure_member(acc: &AccountId)

Ensure that this member is registered correctly.

source§

impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1)

source§

fn ensure_member(acc: &AccountId)

Ensure that this member is registered correctly.

source§

impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2)

source§

fn ensure_member(acc: &AccountId)

Ensure that this member is registered correctly.

source§

impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)

source§

fn ensure_member(acc: &AccountId)

Ensure that this member is registered correctly.

source§

impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>, TupleElement4: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4)

source§

fn ensure_member(acc: &AccountId)

Ensure that this member is registered correctly.

source§

impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>, TupleElement4: BenchmarkSetup<AccountId>, TupleElement5: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5)

source§

fn ensure_member(acc: &AccountId)

Ensure that this member is registered correctly.

source§

impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>, TupleElement4: BenchmarkSetup<AccountId>, TupleElement5: BenchmarkSetup<AccountId>, TupleElement6: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)

source§

fn ensure_member(acc: &AccountId)

Ensure that this member is registered correctly.

source§

impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>, TupleElement4: BenchmarkSetup<AccountId>, TupleElement5: BenchmarkSetup<AccountId>, TupleElement6: BenchmarkSetup<AccountId>, TupleElement7: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)

source§

fn ensure_member(acc: &AccountId)

Ensure that this member is registered correctly.

Implementors§