pub struct Horust { /* private fields */ }
Implementations§
source§impl Horust
impl Horust
pub fn get_services(&self) -> &[Service]
sourcepub fn from_command(command: String) -> Self
pub fn from_command(command: String) -> Self
Creates a new Horust instance from a command. The command will be wrapped in a service and run with sane defaults
sourcepub fn from_services_dirs(paths: &[PathBuf]) -> Result<Self>
pub fn from_services_dirs(paths: &[PathBuf]) -> Result<Self>
Create a new horust instance from multiple paths of services.
sourcepub fn run(&mut self) -> ExitStatus
pub fn run(&mut self) -> ExitStatus
Blocking call, will setup the event loop and the threads and run all the available services.