pub trait Runnable:
Debug
+ Send
+ 'static {
// Required method
fn bootstrap_cmd(&self, process_dir: &Path) -> Result<Cmd, String>;
// Provided method
fn clean_after_fail(&self, process_dir: &Path) -> Result<(), String> { ... }
}Expand description
Trait, which enables using of user-defined types for creating a custom process.