Async programming in Rust with async-std (original) (raw)

  1. 1. Introduction
    1. 1.1. Welcome to async-std!
    2. 1.2. std::future and futures-rs
    3. 1.3. Stability guarantees
  2. 2. Async concepts using async-std
    1. 2.1. Futures
    2. 2.2. Tasks
    3. 2.3. Async read/write
    4. 2.4. Streams and Channels
  3. 3. Tutorial: Implementing a chat
    1. 3.1. Specification and Getting started
    2. 3.2. Writing an Accept Loop
    3. 3.3. Receiving Messages
    4. 3.4. Sending Messages
    5. 3.5. Connecting Readers and Writers
    6. 3.6. All Together
    7. 3.7. Clean Shutdown
    8. 3.8. Handling Disconnection
    9. 3.9. Implementing a Client
  4. 4. Async Patterns
    1. 4.1. TODO: Collected Small Patterns
    2. 4.2. Production-Ready Accept Loop
  5. 5. Security practices
    1. 5.1. Security Disclosures and Policy
  6. 6. Glossary

Async programming in Rust with async-std

Introduction

async-std logo

This book serves as high-level documentation for async-std and a way of learning async programming in Rust through it. As such, it focuses on the async-std API and the task model it gives you.

Please note that the Rust project provides its own book on asynchronous programming, called "Asynchronous Programming in Rust", which we highly recommend reading along with this book, as it provides a different, wider view on the topic.