pub trait ImageHandler: Debug {
// Required methods
fn import(
&self,
new_file: PathBuf,
orig_file: PathBuf,
format: String,
) -> Result<()>;
fn create(&self, target: PathBuf, gbs: usize) -> Result<PathBuf>;
fn remove(&self, disk: PathBuf) -> Result<()>;
fn clone_image(
&self,
description: String,
old: PathBuf,
new: PathBuf,
) -> Result<()>;
}