use std::error::Error; use std::path::PathBuf; pub mod codegen; pub mod systemd; pub trait ServiceManager { fn install(bin_path: PathBuf, name: &str) -> Result<(), Box>; fn uninstall(name: &str) -> Result<(), Box>; fn start(name: &str) -> Result<(), Box>; fn stop(name: &str) -> Result<(), Box>; }