Skip to main content

Manager

Trait Manager 

Source
pub trait Manager {
    // Required methods
    fn reload(&mut self) -> Result<(), CallError>;
    fn start(&mut self, unit: &str) -> Result<(), CallError>;
}
Expand description

What the manager is asked to do, so a control can record it instead of reaching a manager.

Required Methods§

Source

fn reload(&mut self) -> Result<(), CallError>

Reloads the unit files.

Source

fn start(&mut self, unit: &str) -> Result<(), CallError>

Starts a unit.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§