referrerpolicy=no-referrer-when-downgrade
frame_support::migrations

Trait MultiStepMigrator

Source
pub trait MultiStepMigrator {
    // Required methods
    fn ongoing() -> bool;
    fn step() -> Weight;
}
Expand description

Something that can do multi step migrations.

Required Methods§

Source

fn ongoing() -> bool

Hint for whether Self::step should be called.

Source

fn step() -> Weight

Do the next step in the MBM process.

Must gracefully handle the case that it is currently not upgrading.

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 MultiStepMigrator for ()

Implementors§

impl<T: Config> MultiStepMigrator for Pallet<T>