pub struct BarrierUpgradeExecutor;Expand description
Applies an external in-memory upgrade hook while a runtime barrier is frozen.
Implementations§
Source§impl BarrierUpgradeExecutor
impl BarrierUpgradeExecutor
Sourcepub fn migrate_frozen<H>(
controller: &mut BarrierController,
stations: &mut StationSet,
version: SnapshotVersion,
hook: &mut H,
) -> Result<BarrierUpgradeReport, BarrierUpgradeError>where
H: RuntimeUpgradeHook,
pub fn migrate_frozen<H>(
controller: &mut BarrierController,
stations: &mut StationSet,
version: SnapshotVersion,
hook: &mut H,
) -> Result<BarrierUpgradeReport, BarrierUpgradeError>where
H: RuntimeUpgradeHook,
Exports frozen station snapshots, lets hook migrate them, and restores
every station only after all migrated snapshots are valid.
Trait Implementations§
Source§impl Clone for BarrierUpgradeExecutor
impl Clone for BarrierUpgradeExecutor
Source§fn clone(&self) -> BarrierUpgradeExecutor
fn clone(&self) -> BarrierUpgradeExecutor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BarrierUpgradeExecutor
Source§impl Debug for BarrierUpgradeExecutor
impl Debug for BarrierUpgradeExecutor
Source§impl Default for BarrierUpgradeExecutor
impl Default for BarrierUpgradeExecutor
Source§fn default() -> BarrierUpgradeExecutor
fn default() -> BarrierUpgradeExecutor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BarrierUpgradeExecutor
impl RefUnwindSafe for BarrierUpgradeExecutor
impl Send for BarrierUpgradeExecutor
impl Sync for BarrierUpgradeExecutor
impl Unpin for BarrierUpgradeExecutor
impl UnsafeUnpin for BarrierUpgradeExecutor
impl UnwindSafe for BarrierUpgradeExecutor
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
Mutably borrows from an owned value. Read more