Trait UncheckedOnRuntimeUpgrade

Source
pub trait UncheckedOnRuntimeUpgrade {
    // Provided method
    fn on_runtime_upgrade() -> Weight { ... }
}
Expand description

This trait is intended for use within VersionedMigration to execute storage migrations without automatic version checks. Implementations should ensure migration logic is safe and idempotent.

Provided Methods§

Source

fn on_runtime_upgrade() -> Weight

Called within VersionedMigration to execute the actual migration. It is also expected that no version checks are performed within this function.

See also Hooks::on_runtime_upgrade.

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.

Implementors§