How to handle errors in RUST with reqwest library in async mode?

后端 未结 0 829
生来不讨喜
生来不讨喜 2021-01-06 06:53

With rust 1.49 and reqwest 0.11.0, i would like to retrieve a URL, and react on possible errors (wrong URL, no network, ...).

My (simplifed) base code is (and this is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题