pub trait ServiceManager {
// Required methods
fn install(&self) -> Result<()>;
fn uninstall(&self) -> Result<()>;
fn start(&self) -> Result<()>;
fn stop(&self) -> Result<()>;
fn status(&self) -> Result<ServiceStatus>;
}Required Methods§
fn install(&self) -> Result<()>
fn uninstall(&self) -> Result<()>
fn start(&self) -> Result<()>
fn stop(&self) -> Result<()>
fn status(&self) -> Result<ServiceStatus>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".