pub async fn run_main<E: Display>( main: impl Future<Output = Result<(), E>>, ) -> ExitCode
This is inner main function wrapper.
It sets up logging, runs the provided main future or returns on Ctrl-C.
main