referrerpolicy=no-referrer-when-downgrade
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.

Object Safety§

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§