pub trait ConfigStorageHandler: Debug {
Show 13 methods // Required methods fn base_path(&self) -> PathBuf; fn config_path(&self, vm: &VM) -> PathBuf; fn vm_root(&self, vm: &VM) -> PathBuf; fn monitor_path(&self, vm: &VM) -> PathBuf; fn write_config(&self, vm: VM) -> Result<()>; fn vm_exists(&self, vm: &VM) -> bool; fn vm_list(&self) -> Result<Vec<VM>>; fn vm_path(&self, vm: &VM, filename: &str) -> PathBuf; fn vm_path_exists(&self, vm: &VM, filename: &str) -> bool; fn rename(&self, old: &VM, new: &VM) -> Result<()>; fn disk_list(&self, vm: &VM) -> Result<Vec<PathBuf>>; fn pidfile(&self, vm: &VM) -> PathBuf; fn size(&self, vm: &VM) -> Result<usize>;
}

Required Methods§

source

fn base_path(&self) -> PathBuf

source

fn config_path(&self, vm: &VM) -> PathBuf

source

fn vm_root(&self, vm: &VM) -> PathBuf

source

fn monitor_path(&self, vm: &VM) -> PathBuf

source

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

source

fn vm_exists(&self, vm: &VM) -> bool

source

fn vm_list(&self) -> Result<Vec<VM>>

source

fn vm_path(&self, vm: &VM, filename: &str) -> PathBuf

source

fn vm_path_exists(&self, vm: &VM, filename: &str) -> bool

source

fn rename(&self, old: &VM, new: &VM) -> Result<()>

source

fn disk_list(&self, vm: &VM) -> Result<Vec<PathBuf>>

source

fn pidfile(&self, vm: &VM) -> PathBuf

source

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

Implementors§