SupervisorStorageHandler

Trait SupervisorStorageHandler 

Source
pub trait SupervisorStorageHandler: Debug {
    // Required methods
    fn service_name(&self, vm: &VM) -> String;
    fn service_filename(&self, vm: &VM) -> PathBuf;
    fn remove(&self, vm: &VM) -> Result<()>;
    fn create(&self, vm: &VM) -> Result<()>;
    fn list(&self) -> Result<Vec<String>>;
    fn exists(&self, vm: &VM) -> bool;
}

Required Methods§

Source

fn service_name(&self, vm: &VM) -> String

Source

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

Source

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

Source

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

Source

fn list(&self) -> Result<Vec<String>>

Source

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

Implementors§