← 返回卡片

原书出处

Async Rust Unleashing the Power of Fearless Concurrency (Maxwell Flitton, Caroline Morton)

04 Chapter 4. Integrating Networking into Our Own Async Runtime 写入、送出缓冲与半关闭

First Edition · 核验版本的摘录快照 · 导入于 2026-11-25T07:07:54.320Z

Poll<io::Result<()>> { . . . } }

The poll_write function should not be a surprise, but note that we also have poll_flush and poll_shutdown functions. All the functions return a variant of the Poll enum and accept the context. Therefore, we can deduce that all functions are able to put the task to sleep to be woken again and to check whether the future is ready for shutting down, flushing, and writing

to the connection. We should start with

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Async Rust Unleashing the Power of Fearless Concurrency (Maxwell Flitton, Caroline Morton)/_epub-src/OEBPS/ch04.html#id27

EPUB SHA-256:109ff0224da54833b0d49c82502e850845274913fe34a7168dcf36a9c075b4e0