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§
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)
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.