diff --git a/sfsmcd/src/ifaces/traits.rs b/sfsmcd/src/ifaces/traits.rs index 433e89a..551731b 100644 --- a/sfsmcd/src/ifaces/traits.rs +++ b/sfsmcd/src/ifaces/traits.rs @@ -1,10 +1,11 @@ +use tokio::task::JoinHandle; use super::errors::ServiceError; pub trait org_ddnss_sfs_mc_Service { - fn start(&mut self) -> Result, ServiceError>; - fn stop(&mut self) -> Result<(), ServiceError>; + fn start(&mut self) -> Result>, ServiceError>; + fn stop(&mut self) -> Result>, ServiceError>; fn is_running(&self) -> bool; - fn restart(&mut self) -> Result, ServiceError> { + fn restart(&mut self) -> Result>, ServiceError> { if self.is_running() { self.stop()?; }