referrerpolicy=no-referrer-when-downgrade

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required method
    fn enact_candidate(u: u32, h: u32, c: u32) -> Weight;
}

Required Methods§

Source

fn enact_candidate(u: u32, h: u32, c: u32) -> Weight

Weight for enact_candidate extrinsic given the number of sent messages (ump, hrmp) and whether there is a new code for a runtime upgrade.

NOTE: due to a shortcoming of the current benchmarking framework, we use u32 for the code upgrade, even though it is a bool.

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 enact_candidate(_u: u32, _h: u32, _c: u32) -> Weight

Implementors§