Trait OnInitializeWithWeightRegistration
pub trait OnInitializeWithWeightRegistration<T>where
T: Config,{
// Required method
fn on_initialize_with_weight_registration(
_n: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number,
) -> Weight;
}Expand description
All of the types related to the FRAME runtime executive.
Extension trait for OnInitialize.
It takes care to register the weight of each pallet directly after executing its
on_initialize.
The trait is sealed.
Required Methods§
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.