pub trait StorageHandler: Debug {
Show 13 methods
// Required methods
fn base_path(&self) -> PathBuf;
fn vm_root(&self, name: &str) -> Result<PathBuf>;
fn monitor_path(&self, vm_name: &str) -> Result<PathBuf>;
fn config(&self, vm_name: &str) -> Result<Configuration>;
fn write_config(&self, vm_name: &str, config: Configuration) -> Result<()>;
fn vm_exists(&self, name: &str) -> bool;
fn vm_list(&self) -> Result<Vec<StoragePath>>;
fn vm_path(&self, name: &str, filename: &str) -> Result<String>;
fn vm_path_exists(&self, name: &str, filename: &str) -> bool;
fn create_monitor(&self, vm_name: &str) -> Result<()>;
fn valid_filename(&self, name: &str) -> bool;
fn rename(&self, old: &str, new: &str) -> Result<()>;
fn disk_list(&self, name: &str) -> Result<Vec<PathBuf>>;
}