run_main

Function run_main 

Source
pub async fn run_main<E: Display>(
    main: impl Future<Output = Result<(), E>>,
) -> ExitCode
Expand description

This is inner main function wrapper.

It sets up logging, runs the provided main future or returns on Ctrl-C.