pub struct MultiBlockMigrationsCallApi<'api> { /* private fields */ }Implementations§
Source§impl<'api> MultiBlockMigrationsCallApi<'api>
impl<'api> MultiBlockMigrationsCallApi<'api>
Sourcepub fn force_set_cursor(
&self,
cursor: Option<MigrationCursor<Vec<u8>, u32>>,
) -> Result<WrappedCall>
pub fn force_set_cursor( &self, cursor: Option<MigrationCursor<Vec<u8>, u32>>, ) -> Result<WrappedCall>
Allows root to set a cursor to forcefully start, stop or forward the migration process.
Should normally not be needed and is only in place as emergency measure. Note that
restarting the migration process in this manner will not call the
[MigrationStatusHandler::started] hook or emit an UpgradeStarted event.
Sourcepub fn force_set_active_cursor(
&self,
index: u32,
inner_cursor: Option<Vec<u8>>,
started_at: Option<u32>,
) -> Result<WrappedCall>
pub fn force_set_active_cursor( &self, index: u32, inner_cursor: Option<Vec<u8>>, started_at: Option<u32>, ) -> Result<WrappedCall>
Allows root to set an active cursor to forcefully start/forward the migration process.
This is an edge-case version of Self::force_set_cursor that allows to set the
started_at value to the next block number. Otherwise this would not be possible, since
force_set_cursor takes an absolute block number. Setting started_at to None
indicates that the current block number plus one should be used.
Sourcepub fn force_onboard_mbms(&self) -> Result<WrappedCall>
pub fn force_onboard_mbms(&self) -> Result<WrappedCall>
Forces the onboarding of the migrations.
This process happens automatically on a runtime upgrade. It is in place as an emergency
measurement. The cursor needs to be None for this to succeed.
Sourcepub fn clear_historic(
&self,
selector: HistoricCleanupSelector<Vec<u8>>,
) -> Result<WrappedCall>
pub fn clear_historic( &self, selector: HistoricCleanupSelector<Vec<u8>>, ) -> Result<WrappedCall>
Clears the Historic set.
map_cursor must be set to the last value that was returned by the
HistoricCleared event. The first time None can be used. limit must be chosen in a
way that will result in a sensible weight.
Trait Implementations§
Source§impl<'api> Clone for MultiBlockMigrationsCallApi<'api>
impl<'api> Clone for MultiBlockMigrationsCallApi<'api>
Source§fn clone(&self) -> MultiBlockMigrationsCallApi<'api>
fn clone(&self) -> MultiBlockMigrationsCallApi<'api>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'api> Freeze for MultiBlockMigrationsCallApi<'api>
impl<'api> !RefUnwindSafe for MultiBlockMigrationsCallApi<'api>
impl<'api> Send for MultiBlockMigrationsCallApi<'api>
impl<'api> Sync for MultiBlockMigrationsCallApi<'api>
impl<'api> Unpin for MultiBlockMigrationsCallApi<'api>
impl<'api> UnsafeUnpin for MultiBlockMigrationsCallApi<'api>
impl<'api> !UnwindSafe for MultiBlockMigrationsCallApi<'api>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
Source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
Source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
Source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T. Read moreSource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from.Source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
Source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T.