pub trait EpochChangeTrigger {
// Required method
fn trigger<T: Config>(_: BlockNumberFor<T>) -> Weight;
}
Expand description
Trigger an epoch change, if any should take place.
Required Methods§
Sourcefn trigger<T: Config>(_: BlockNumberFor<T>) -> Weight
fn trigger<T: Config>(_: BlockNumberFor<T>) -> Weight
May trigger an epoch change, if any should take place.
Returns an optional Weight
if epoch change has been triggered.
This should be called during every block, after initialization is done.
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.