最简单的方法是使用block_on 函数: # extern crate async_std; ... 在Rust 中,所有的代码块都要有返回值,而 async 代码块返回的值的类型是 Future 。
確定! 回上一頁