The last section of the book covers the broader async ecosystem, and provides a number of examples of how to accomplish common tasks. With that out of the way, let's explore the exciting world of Asynchronous Programming in Rust! 这本书的目的是一个全面的,最新的指南使用Rust的异步语言功能和...
usefutures::try_join;asyncfnget_book()->Result<Book,String>{/* ... */Ok(Book)}asyncfnget_music()->Result<Music,String>{/* ... */Ok(Music)}asyncfnget_book_and_music()->Result<(Book,Music),String>{letbook_fut=get_book();letmusic_fut=get_music();try_join!(book_fut,music_fu...
asyncfnget_two_sites_async() {// Create two different "futures" which, when run to completion, 创建两个不同的`future`,你可以把`future`理解为未来某个时刻会被执行的计划任务// will asynchronously download the webpages. 当两个`future`被同时执行后,它们将并发的去下载目标页面letfuture_one=downloa...
6.Rust 异步编程,基于官方的async book和tokio tutorial翻译,并且添加了新的内容、示例,还对一些内容...
the book 中文翻译 Rust 程序设计语言 简体中文版kaisery.github.io/trpl-zh-cn/ Rust语言圣经 htt...
async-book Rust 中的异步编程 要求 async-book 的构建需要mdbook,您可以使用 Cargo 进行安装。 cargo install mdbook 建造 要创建完成的书,请运行mdbook build在下生成它book/目录。 mdbook build 发展历程 在编写过程中,查看更改非常方便,mdbook serve将启动本地网络服务器来提供图书。
使用Async Rust 构建简单的 P2P 节点【完结】 从零开始创建一个 WebAssembly 游戏 Rust 面试题 可视化 Rust 各数据结构的内存布局(必看) Book Rust 的书。 Rust 语言圣经中文版 Rust 语言真的好:连续七年成为全世界最受欢迎的语言、没有 GC 也无需手动内存管理、性能比肩 C++/C 还能直接调用它们的代码、安全性...
1.1. 翻译说明 1.2. 起步 1.3. 为什么要异步 1.4. async/await! 入门 1.5. 应用:简单HTTP服务器 第二章. 执行者 2.1. 深入异步:执行Future和任务 2.2. Future 特质 2.3. Waker唤醒任务 2.4. 应用:构建执行者 2.5. 执行者和系统IO 第三章. Async/Await ...
Asynchronous Programming 🚧 解释async 代码, Futures, ... Design Patterns 惯例, 模式和反模式. Edition Guide 与Rust 2015, Rust 2018 等各版本打交道. Guide to Rustc Development 解释编译器内部如何工作. Little Book of Rust Macros 社区对 Rust 宏的经验总结. Reference 🚧 (中文) 《Rust 参考手册...
Rustisanempoweringlanguagethatprovidesararecombinationofsafety,speed,andzero-costabstractions.MasteringRust–SecondEditionisfilledwithclearandsimpleexplanationsofthelanguagefeaturesalongwithreal-worldexamples,showingyouhowyoucanbuildrobust,scalable,andreliableprograms.Thissecondeditionofthebookimprovesuponthepreviousoneandto...