Skip to main content

run

Function run 

Source
pub fn run<F, Fut>(verbose: u8, f: F)
where F: FnOnce() -> Fut, Fut: Future<Output = Result<()>>,
Expand description

Shared entry point: init tracing from -v count (falling back to RUST_LOG), build a tokio runtime, run the given async closure, and exit on error.