pub async fn run_server(state: State, opts: ServerOpts) -> Result<()>