pub trait Manager {
// Required methods
fn reload(&mut self) -> Result<(), CallError>;
fn reset_failed(&mut self, unit: &str) -> Result<(), CallError>;
fn start(&mut self, unit: &str) -> Result<(), CallError>;
fn stop(&mut self, unit: &str) -> Result<(), CallError>;
fn active_state(&mut self, unit: &str) -> Result<Option<String>, CallError>;
}Expand description
What the manager is asked to do, so a control can record it instead of reaching a manager.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".