Trait Launcher
Source pub trait Launcher: Debug {
// Required methods
fn launch_attached(&self, vm: &VM) -> Result<ExitStatus>;
fn launch_detached(&self, vm: &VM) -> Result<()>;
fn shutdown_wait(&self, vm: &VM) -> Result<ExitStatus>;
fn shutdown_immediately(&self, vm: &VM) -> Result<()>;
fn reset(&self, vm: &VM) -> Result<()>;
fn snapshot(&self, vm: &VM, name: String) -> Result<()>;
fn restore(&self, vm: &VM, name: String) -> Result<()>;
fn delete_snapshot(&self, vm: &VM, name: String) -> Result<()>;
// Provided methods
fn save_state(&self, vm: &VM) -> Result<()> { ... }
fn load_state(&self, vm: &VM) -> Result<()> { ... }
fn clear_state(&self, vm: &VM) -> Result<()> { ... }
fn restart(&self, vm: &VM) -> Result<()> { ... }
}