Launcher

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<()> { ... }
}

Required Methods§

Source

fn launch_attached(&self, vm: &VM) -> Result<ExitStatus>

Source

fn launch_detached(&self, vm: &VM) -> Result<()>

Source

fn shutdown_wait(&self, vm: &VM) -> Result<ExitStatus>

Source

fn shutdown_immediately(&self, vm: &VM) -> Result<()>

Source

fn reset(&self, vm: &VM) -> Result<()>

Source

fn snapshot(&self, vm: &VM, name: String) -> Result<()>

Source

fn restore(&self, vm: &VM, name: String) -> Result<()>

Source

fn delete_snapshot(&self, vm: &VM, name: String) -> Result<()>

Provided Methods§

Source

fn save_state(&self, vm: &VM) -> Result<()>

Source

fn load_state(&self, vm: &VM) -> Result<()>

Source

fn clear_state(&self, vm: &VM) -> Result<()>

Source

fn restart(&self, vm: &VM) -> Result<()>

Implementors§