pub trait Service {
// Required methods
fn name(&self) -> &str;
fn description(&self) -> &str;
fn label(&self) -> &str;
// Provided methods
fn start(&self, force: bool) -> Result<()> { ... }
fn stop(&self) -> Result<()> { ... }
fn logs(&self, tail_args: &[String]) -> Result<()> { ... }
}Expand description
Trait for external command binaries that run as system services.
Implementors provide metadata; start/stop/logs come free.
Required Methods§
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Human description.