pub trait MigratableKernel: CheckpointableKernel {
// Required methods
fn prepare_for_migration(&mut self) -> Result<()>;
fn cancel_migration(&mut self) -> Result<()>;
fn is_quiescent(&self) -> bool;
fn estimated_state_size(&self) -> usize;
}Expand description
Trait for kernels that support live migration.
Required Methods§
Sourcefn prepare_for_migration(&mut self) -> Result<()>
fn prepare_for_migration(&mut self) -> Result<()>
Prepare kernel for migration (quiesce, drain messages).
Sourcefn cancel_migration(&mut self) -> Result<()>
fn cancel_migration(&mut self) -> Result<()>
Resume kernel after migration is cancelled.
Sourcefn is_quiescent(&self) -> bool
fn is_quiescent(&self) -> bool
Check if kernel is ready to be checkpointed.
Sourcefn estimated_state_size(&self) -> usize
fn estimated_state_size(&self) -> usize
Get estimated state size for migration planning.