pub trait WeightInfo {
// Required methods
fn validate_unsigned() -> Weight;
fn submit_unsigned() -> Weight;
// Provided method
fn mine_solution(_p: u32) -> Weight { ... }
}Expand description
Weight functions needed for pallet_election_provider_multi_block::unsigned.
Required Methods§
fn validate_unsigned() -> Weight
fn submit_unsigned() -> Weight
Provided Methods§
fn mine_solution(_p: u32) -> 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 ()
Available on crate feature std only.
impl WeightInfo for ()
Available on crate feature
std only.