:::info Rust标准库 std::task::* 是用来处理异步任务的 Types 以及 Traits。 :::

    RustStd-第 3 页.png
    包含一下四个模块:

    • Macros:实验中的宏
      • ready
    • Structs:Context以及Waker
      • Context
      • RawWaker
      • RawWakerVTable
      • Waker
    • Enums:Poll枚举,用来表示异步任务的状态
      • Poll::{Pending,Ready}
    • Traits:用户实现自定义Waker
      • Wake

    RustStd-第 2 页.png