Skip to main content

handle_main

Function handle_main 

Source
pub fn handle_main<T>(main_fn: T) -> Result<()>
where T: AsyncFn() -> Result<CompactString>,
Expand description

A Tokio runtime creator and an exit handler to prettify success and error contexts TODO: Replace this with custom error types.