WeightInfo

Trait WeightInfo 

Source
pub trait WeightInfo {
    // Required methods
    fn set(v: u32) -> Weight;
    fn set_main_chain_scripts() -> Weight;
}
Expand description

Weight functions needed for pallet_session_validator_management.

Required Methods§

Source

fn set(v: u32) -> Weight

Source

fn set_main_chain_scripts() -> Weight

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 WeightInfo for ()

Source§

fn set(v: u32) -> Weight

Storage: SessionCommitteeManagement::CurrentCommittee (r:1 w:0) Proof: SessionCommitteeManagement::CurrentCommittee (max_values: Some(1), max_size: Some(133130), added: 133625, mode: MaxEncodedLen) Storage: SessionCommitteeManagement::NextCommittee (r:1 w:1) Proof: SessionCommitteeManagement::NextCommittee (max_values: Some(1), max_size: Some(133130), added: 133625, mode: MaxEncodedLen) The range of component v is [0, 1024].

Source§

fn set_main_chain_scripts() -> Weight

Storage: SessionCommitteeManagement::MainChainScriptsConfiguration (r:0 w:1) Proof: SessionCommitteeManagement::MainChainScriptsConfiguration (max_values: Some(1), max_size: Some(178), added: 673, mode: MaxEncodedLen)

Implementors§

Source§

impl<T: Config> WeightInfo for SubstrateWeight<T>