/// Create a new Arrow Command handler.
Create a new Arrow Command handler.
Create a new Arrow Command handler .
fn new(
        logger: L,
        config_file: &str,
        rtsp_paths_file: &str,
        mjpeg_paths_file: &str,
        default_svc_table: ServiceTable,
        app_context: Shared<AppContext>) -> CommandHandler<L> {
        let now = time::precise_time_s();
        let active_services = {
            let app_context = app_context.lock()
                .unwrap();
            app_context.config.active_services()
        };
        CommandHandler {
            logger:            logger,
            config_file:       config_file.to_string(),
            rtsp_paths_file:   rtsp_paths_file.to_string(),
            mjpeg_paths_file:  mjpeg_paths_file.to_string(),
            default_svc_table: default_svc_table,
            active_services:   active_services,
            app_context:       app_context,
            scanner:           None,
            last_scan:         now - NETWORK_SCAN_PERIOD
        }
    }
fn new ( logger : L , config_file : & str , rtsp_paths_file : & str , mjpeg_paths_file : & str , default_svc_table : ServiceTable , app_context : Shared < AppContext > ) -> CommandHandler < L > { let now = time :: precise_time_s ( ) ; let active_services = { let app_context = app_context . lock ( ) . unwrap ( ) ; app_context . config . active_services ( ) } ; CommandHandler { logger : logger , config_file : config_file . to_string ( ) , rtsp_paths_file : rtsp_paths_file . to_string ( ) , mjpeg_paths_file : mjpeg_paths_file . to_string ( ) , default_svc_table : default_svc_table , active_services : active_services , app_context : app_context , scanner : None , last_scan : now - NETWORK_SCAN_PERIOD } }
Create a new Arrow Command handler.
Create a new Arrow Command handler .
logger
L
config_file
&str
rtsp_paths_file
&str
mjpeg_paths_file
&str
default_svc_table
ServiceTable
app_context
Shared<AppContext>