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>>;
}

Required Methods§

source

fn base_path(&self) -> PathBuf

source

fn vm_root(&self, name: &str) -> Result<PathBuf>

source

fn monitor_path(&self, vm_name: &str) -> Result<PathBuf>

source

fn config(&self, vm_name: &str) -> Result<Configuration>

source

fn write_config(&self, vm_name: &str, config: Configuration) -> Result<()>

source

fn vm_exists(&self, name: &str) -> bool

source

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

source

fn vm_path(&self, name: &str, filename: &str) -> Result<String>

source

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

source

fn create_monitor(&self, vm_name: &str) -> Result<()>

source

fn valid_filename(&self, name: &str) -> bool

source

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

source

fn disk_list(&self, name: &str) -> Result<Vec<PathBuf>>

Implementors§