referrerpolicy=no-referrer-when-downgrade

Type Alias pallet_migrations::CursorOf

source ·
pub type CursorOf<T> = MigrationCursor<RawCursorOf<T>, BlockNumberFor<T>>;
Expand description

Convenience alias for MigrationCursor.

Aliased Type§

enum CursorOf<T> {
    Active(ActiveCursor<BoundedVec<u8, <T as Config>::CursorMaxLen>, <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number>),
    Stuck,
}

Variants§

§

Active(ActiveCursor<BoundedVec<u8, <T as Config>::CursorMaxLen>, <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number>)

Points to the currently active migration and its inner cursor.

§

Stuck

Migration got stuck and cannot proceed. This is bad.