referrerpolicy=no-referrer-when-downgrade
pub trait RankedMembersSwapHandler<AccountId, Rank> {
    // Required method
    fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank);
}
Expand description

Handler that can deal with the swap of two members.

Required Methods§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<AccountId, Rank> RankedMembersSwapHandler<AccountId, Rank> for ()
where Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0,)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, TupleElement4: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, TupleElement4: RankedMembersSwapHandler<AccountId, Rank>, TupleElement5: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, TupleElement4: RankedMembersSwapHandler<AccountId, Rank>, TupleElement5: RankedMembersSwapHandler<AccountId, Rank>, TupleElement6: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, TupleElement4: RankedMembersSwapHandler<AccountId, Rank>, TupleElement5: RankedMembersSwapHandler<AccountId, Rank>, TupleElement6: RankedMembersSwapHandler<AccountId, Rank>, TupleElement7: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, TupleElement4: RankedMembersSwapHandler<AccountId, Rank>, TupleElement5: RankedMembersSwapHandler<AccountId, Rank>, TupleElement6: RankedMembersSwapHandler<AccountId, Rank>, TupleElement7: RankedMembersSwapHandler<AccountId, Rank>, TupleElement8: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, TupleElement4: RankedMembersSwapHandler<AccountId, Rank>, TupleElement5: RankedMembersSwapHandler<AccountId, Rank>, TupleElement6: RankedMembersSwapHandler<AccountId, Rank>, TupleElement7: RankedMembersSwapHandler<AccountId, Rank>, TupleElement8: RankedMembersSwapHandler<AccountId, Rank>, TupleElement9: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, TupleElement4: RankedMembersSwapHandler<AccountId, Rank>, TupleElement5: RankedMembersSwapHandler<AccountId, Rank>, TupleElement6: RankedMembersSwapHandler<AccountId, Rank>, TupleElement7: RankedMembersSwapHandler<AccountId, Rank>, TupleElement8: RankedMembersSwapHandler<AccountId, Rank>, TupleElement9: RankedMembersSwapHandler<AccountId, Rank>, TupleElement10: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, TupleElement4: RankedMembersSwapHandler<AccountId, Rank>, TupleElement5: RankedMembersSwapHandler<AccountId, Rank>, TupleElement6: RankedMembersSwapHandler<AccountId, Rank>, TupleElement7: RankedMembersSwapHandler<AccountId, Rank>, TupleElement8: RankedMembersSwapHandler<AccountId, Rank>, TupleElement9: RankedMembersSwapHandler<AccountId, Rank>, TupleElement10: RankedMembersSwapHandler<AccountId, Rank>, TupleElement11: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, TupleElement4: RankedMembersSwapHandler<AccountId, Rank>, TupleElement5: RankedMembersSwapHandler<AccountId, Rank>, TupleElement6: RankedMembersSwapHandler<AccountId, Rank>, TupleElement7: RankedMembersSwapHandler<AccountId, Rank>, TupleElement8: RankedMembersSwapHandler<AccountId, Rank>, TupleElement9: RankedMembersSwapHandler<AccountId, Rank>, TupleElement10: RankedMembersSwapHandler<AccountId, Rank>, TupleElement11: RankedMembersSwapHandler<AccountId, Rank>, TupleElement12: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, TupleElement4: RankedMembersSwapHandler<AccountId, Rank>, TupleElement5: RankedMembersSwapHandler<AccountId, Rank>, TupleElement6: RankedMembersSwapHandler<AccountId, Rank>, TupleElement7: RankedMembersSwapHandler<AccountId, Rank>, TupleElement8: RankedMembersSwapHandler<AccountId, Rank>, TupleElement9: RankedMembersSwapHandler<AccountId, Rank>, TupleElement10: RankedMembersSwapHandler<AccountId, Rank>, TupleElement11: RankedMembersSwapHandler<AccountId, Rank>, TupleElement12: RankedMembersSwapHandler<AccountId, Rank>, TupleElement13: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, TupleElement4: RankedMembersSwapHandler<AccountId, Rank>, TupleElement5: RankedMembersSwapHandler<AccountId, Rank>, TupleElement6: RankedMembersSwapHandler<AccountId, Rank>, TupleElement7: RankedMembersSwapHandler<AccountId, Rank>, TupleElement8: RankedMembersSwapHandler<AccountId, Rank>, TupleElement9: RankedMembersSwapHandler<AccountId, Rank>, TupleElement10: RankedMembersSwapHandler<AccountId, Rank>, TupleElement11: RankedMembersSwapHandler<AccountId, Rank>, TupleElement12: RankedMembersSwapHandler<AccountId, Rank>, TupleElement13: RankedMembersSwapHandler<AccountId, Rank>, TupleElement14: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

§

impl<AccountId, Rank, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15> RankedMembersSwapHandler<AccountId, Rank> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15)
where TupleElement0: RankedMembersSwapHandler<AccountId, Rank>, TupleElement1: RankedMembersSwapHandler<AccountId, Rank>, TupleElement2: RankedMembersSwapHandler<AccountId, Rank>, TupleElement3: RankedMembersSwapHandler<AccountId, Rank>, TupleElement4: RankedMembersSwapHandler<AccountId, Rank>, TupleElement5: RankedMembersSwapHandler<AccountId, Rank>, TupleElement6: RankedMembersSwapHandler<AccountId, Rank>, TupleElement7: RankedMembersSwapHandler<AccountId, Rank>, TupleElement8: RankedMembersSwapHandler<AccountId, Rank>, TupleElement9: RankedMembersSwapHandler<AccountId, Rank>, TupleElement10: RankedMembersSwapHandler<AccountId, Rank>, TupleElement11: RankedMembersSwapHandler<AccountId, Rank>, TupleElement12: RankedMembersSwapHandler<AccountId, Rank>, TupleElement13: RankedMembersSwapHandler<AccountId, Rank>, TupleElement14: RankedMembersSwapHandler<AccountId, Rank>, TupleElement15: RankedMembersSwapHandler<AccountId, Rank>, Rank: Clone,

§

fn swapped(who: &AccountId, new_who: &AccountId, rank: Rank)

Member old was swapped with new at rank.

Implementors§