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

Trait MigrationStatusHandler

Source
pub trait MigrationStatusHandler {
    // Provided methods
    fn started() { ... }
    fn completed() { ... }
}
Expand description

Notification handler for status updates regarding Multi-Block-Migrations.

Provided Methods§

Source

fn started()

Notifies of the start of a runtime migration.

Source

fn completed()

Notifies of the completion of a runtime migration.

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

Source§

fn started()

Notifies of the start of a runtime migration.

Source§

fn completed()

Notifies of the completion of a runtime migration.

Source§

impl<TupleElement0: MigrationStatusHandler> MigrationStatusHandler for (TupleElement0,)

Source§

fn started()

Notifies of the start of a runtime migration.

Source§

fn completed()

Notifies of the completion of a runtime migration.

Source§

impl<TupleElement0: MigrationStatusHandler, TupleElement1: MigrationStatusHandler> MigrationStatusHandler for (TupleElement0, TupleElement1)

Source§

fn started()

Notifies of the start of a runtime migration.

Source§

fn completed()

Notifies of the completion of a runtime migration.

Source§

impl<TupleElement0: MigrationStatusHandler, TupleElement1: MigrationStatusHandler, TupleElement2: MigrationStatusHandler> MigrationStatusHandler for (TupleElement0, TupleElement1, TupleElement2)

Source§

fn started()

Notifies of the start of a runtime migration.

Source§

fn completed()

Notifies of the completion of a runtime migration.

Source§

impl<TupleElement0: MigrationStatusHandler, TupleElement1: MigrationStatusHandler, TupleElement2: MigrationStatusHandler, TupleElement3: MigrationStatusHandler> MigrationStatusHandler for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)

Source§

fn started()

Notifies of the start of a runtime migration.

Source§

fn completed()

Notifies of the completion of a runtime migration.

Source§

impl<TupleElement0: MigrationStatusHandler, TupleElement1: MigrationStatusHandler, TupleElement2: MigrationStatusHandler, TupleElement3: MigrationStatusHandler, TupleElement4: MigrationStatusHandler> MigrationStatusHandler for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4)

Source§

fn started()

Notifies of the start of a runtime migration.

Source§

fn completed()

Notifies of the completion of a runtime migration.

Source§

impl<TupleElement0: MigrationStatusHandler, TupleElement1: MigrationStatusHandler, TupleElement2: MigrationStatusHandler, TupleElement3: MigrationStatusHandler, TupleElement4: MigrationStatusHandler, TupleElement5: MigrationStatusHandler> MigrationStatusHandler for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5)

Source§

fn started()

Notifies of the start of a runtime migration.

Source§

fn completed()

Notifies of the completion of a runtime migration.

Source§

impl<TupleElement0: MigrationStatusHandler, TupleElement1: MigrationStatusHandler, TupleElement2: MigrationStatusHandler, TupleElement3: MigrationStatusHandler, TupleElement4: MigrationStatusHandler, TupleElement5: MigrationStatusHandler, TupleElement6: MigrationStatusHandler> MigrationStatusHandler for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)

Source§

fn started()

Notifies of the start of a runtime migration.

Source§

fn completed()

Notifies of the completion of a runtime migration.

Source§

impl<TupleElement0: MigrationStatusHandler, TupleElement1: MigrationStatusHandler, TupleElement2: MigrationStatusHandler, TupleElement3: MigrationStatusHandler, TupleElement4: MigrationStatusHandler, TupleElement5: MigrationStatusHandler, TupleElement6: MigrationStatusHandler, TupleElement7: MigrationStatusHandler> MigrationStatusHandler for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)

Source§

fn started()

Notifies of the start of a runtime migration.

Source§

fn completed()

Notifies of the completion of a runtime migration.

Implementors§