pub fn start(cfg: TriggerSystemConfig) -> Self {
        log::debug!("starting system");

        let sys = Self {
            handle: StoppableThread::spawn(move |stop_rx| {
                match TriggerManager::new(
                    stop_rx,
                    cfg.config_loader,
                    cfg.queue_writer,
                    cfg.plugin_host,
                ) {
                    Ok(mut man) => man.start(),
                    Err(e) => log::error!("failed to start manager: {:?}", e),
                }
            }),
        };

        log::info!("system started");

        sys
    }
/// Creates a new trigger system.
Creates a new trigger system.
Creates a new trigger system .
pub fn start(cfg: TriggerSystemConfig) -> Self {
        log::debug!("starting system");
        let sys = Self {
            handle: StoppableThread::spawn(move |stop_rx| {
                match TriggerManager::new(
                    stop_rx,
                    cfg.config_loader,
                    cfg.queue_writer,
                    cfg.plugin_host,
                ) {
                    Ok(mut man) => man.start(),
                    Err(e) => log::error!("failed to start manager: {:?}", e),
                }
            }),
        };
        log::info!("system started");
        sys
    }
pub fn start ( cfg : TriggerSystemConfig ) -> Self { log :: debug ! ( " " ) ; let sys = Self { handle : StoppableThread :: spawn ( move | stop_rx | { match TriggerManager :: new ( stop_rx , cfg . config_loader , cfg . queue_writer , cfg . plugin_host , ) { Ok ( mut man ) => man . start ( ) , Err ( e ) => log :: error ! ( " " e ) , } } ) , } ; log :: info ! ( " " ) ; sys }
Creates a new trigger system.
Creates a new trigger system .
cfg
TriggerSystemConfig