pub trait Backend {
// Required methods
fn label(&self) -> String;
fn list(&self) -> Result<Listing>;
fn start(&self, id: &str) -> Result<String>;
fn run(&self, sched: &str, args: &[String]) -> Result<String>;
fn stop(&self) -> Result<String>;
fn escalates(&self) -> bool;
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".