Trait frame_support::migrations::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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MultiStepMigrator for ()

Implementors§