/rust-async-book

<Asynchronous Programming in Rust> Chinese translation

Primary LanguageRustMIT LicenseMIT

Asynchronous Programming in Rust Chinese translation

目录

  1. Getting Started

    1.1. Why Async?

    1.2. The State of Asynchronous Rust

    1.3. async/.await Primer

  2. Under the Hood: Executing Futures and Tasks

    2.1. The Future Trait

    2.2. Task Wakeups with Waker

    2.3. Applied: Build an Executor

    2.4. Executors and System IO

  3. async/await

  4. Pinning

  5. Streams

    5.1. Iteration and Concurrency

  6. Executing Multiple Futures at a Time

    6.1. join!

    6.2. select!

    6.3. TODO: Spawning

    6.4. TODO: Cancellation and Timeouts

    6.5. TODO: FuturesUnordered

  7. Workarounds to Know and Love

    7.1. ? in async Blocks

    7.2. Send Approximation

    7.3. Recursion

    7.4. async in Traits

  8. The Async Ecosystem

  9. Final Project: HTTP Server

    9.1. Running Asynchronous Code

    9.2. Handling Connections Concurrently

    9.3. Testing the Server

  10. TODO: I/O

    10.1. TODO: AsyncRead and AsyncWrite

  11. TODO: Asynchronous Design Patterns: Solutions and Suggestions

    11.1. TODO: Modeling Servers and the Request/Response Pattern

    11.2. TODO: Managing Shared State