time_primitives

Trait ElectionsInterface

Source
pub trait ElectionsInterface {
    type MaxElectionsPerBlock: Get<BlockNumber>;

    // Required methods
    fn shard_offline(network: NetworkId, members: Vec<AccountId>);
    fn member_online(id: &AccountId, network: NetworkId);
    fn members_offline(members: Vec<AccountId>, network: NetworkId);
}

Required Associated Types§

Required Methods§

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§