Skip to main content

cli_main

Function cli_main 

Source
pub fn cli_main<M, C, G>(
    mymod: ThreadedAsyncCameraModule<M, C, G>,
    cli: CliArgs,
    app_name: &'static str,
) -> Result<ThreadedAsyncCameraModule<M, C, G>>
where M: CameraModule<CameraType = C, Guard = G> + 'static, C: 'static + Camera + Send, G: Send + 'static,
Expand description

Run the Strand Camera application for an already-constructed camera module.

The command line is parsed by cli_main_dispatch (which needs the selected backend before it can build mymod) and handed in as cli.