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<()>;
    fn remove(&self, disk: PathBuf) -> Result<()>;
    fn clone_image(
        &self,
        description: String,
        old: PathBuf,
        new: PathBuf
    ) -> Result<()>;
}

Required Methods§

source

fn import( &self, new_file: PathBuf, orig_file: PathBuf, format: String ) -> Result<()>

source

fn create(&self, target: PathBuf, gbs: usize) -> Result<()>

source

fn remove(&self, disk: PathBuf) -> Result<()>

source

fn clone_image( &self, description: String, old: PathBuf, new: PathBuf ) -> Result<()>

Implementors§