referrerpolicy=no-referrer-when-downgrade
pallet_ranked_collective

Trait 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.

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.

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§

impl<T: Config<I>, I: 'static> BenchmarkSetup<<T as Config>::AccountId> for Pallet<T, I>

impl<T: Config<I>, I: 'static> BenchmarkSetup<<T as Config>::AccountId> for Pallet<T, I>