pub trait FailedMigrationHandler {
    // Required method
    fn failed(migration: Option<u32>) -> FailedMigrationHandling;
Expand description

Handles a failed runtime migration.

This should never happen, but is here for completeness.

Required Methods§


fn failed(migration: Option<u32>) -> FailedMigrationHandling

Infallibly handle a failed runtime migration.

Gets passed in the optional index of the migration in the batch that caused the failure. Returning None means that no automatic handling should take place and the callee decides in the implementation what to do.

Object Safety§

This trait is not object safe.