You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
424 B
Rust

use std::process::Child;
use vore_core::InstanceConfig;
#[derive(Debug)]
pub struct Instance {
config: InstanceConfig,
qemu: Option<Qemu>,
}
impl Instance {
pub fn from_config(config: InstanceConfig) -> Instance {
Instance { config, qemu: None }
}
pub fn spawn_qemu(&self) -> Result<(), anyhow::Error> {
Ok(())
}
}
#[derive(Debug)]
pub struct Qemu {
process: Option<Child>,
}