pub struct CellMigrationExecutor;Expand description
Executes cell-level ownership migration using station-local indexes.
Implementations§
Source§impl CellMigrationExecutor
impl CellMigrationExecutor
Sourcepub fn migrate_cells(
stations: &mut StationSet,
source_index: &mut CellIndex,
target_index: &mut CellIndex,
source_station: StationId,
target_station: StationId,
cells: &[CellCoord3],
ghost_ttl_ticks: u64,
) -> Result<CellMigrationReport, CellMigrationError>
pub fn migrate_cells( stations: &mut StationSet, source_index: &mut CellIndex, target_index: &mut CellIndex, source_station: StationId, target_station: StationId, cells: &[CellCoord3], ghost_ttl_ticks: u64, ) -> Result<CellMigrationReport, CellMigrationError>
Migrates owned entities found in cells from source station to target station.
Sourcepub fn migrate_cells_into(
stations: &mut StationSet,
source_index: &mut CellIndex,
target_index: &mut CellIndex,
source_station: StationId,
target_station: StationId,
cells: &[CellCoord3],
ghost_ttl_ticks: u64,
scratch: &mut CellMigrationScratch,
report: &mut CellMigrationReport,
) -> Result<(), CellMigrationError>
pub fn migrate_cells_into( stations: &mut StationSet, source_index: &mut CellIndex, target_index: &mut CellIndex, source_station: StationId, target_station: StationId, cells: &[CellCoord3], ghost_ttl_ticks: u64, scratch: &mut CellMigrationScratch, report: &mut CellMigrationReport, ) -> Result<(), CellMigrationError>
Migrates cells using caller-owned reusable working and report storage.
The report is reset before processing. As with Self::migrate_cells,
an error may occur after earlier entities have already migrated.
Trait Implementations§
Source§impl Clone for CellMigrationExecutor
impl Clone for CellMigrationExecutor
Source§fn clone(&self) -> CellMigrationExecutor
fn clone(&self) -> CellMigrationExecutor
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 CellMigrationExecutor
Source§impl Debug for CellMigrationExecutor
impl Debug for CellMigrationExecutor
Source§impl Default for CellMigrationExecutor
impl Default for CellMigrationExecutor
Source§fn default() -> CellMigrationExecutor
fn default() -> CellMigrationExecutor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CellMigrationExecutor
impl RefUnwindSafe for CellMigrationExecutor
impl Send for CellMigrationExecutor
impl Sync for CellMigrationExecutor
impl Unpin for CellMigrationExecutor
impl UnsafeUnpin for CellMigrationExecutor
impl UnwindSafe for CellMigrationExecutor
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