11.3.3. Future Trait rust use core::task::{Context, Poll}; trait Future { type Output; fn poll(self: Pin , cx: &mut Context ) -> Poll ; } rust enum Poll { Ready(T), Pending, } mermaid graph TD Pending -->|poll函数返回Pending,注册唤醒器,等待事件| Pending Pending -->|异步事件发生,唤醒器唤醒| Pending Pending -->|poll函数返回就绪状态| Ready Ready -->|已完成| Ready state((状态)) -->