Enter your book access code

The curriculum, drills, tutor, and interviewer mode are for readers of Ace the Rust Interview. The code is printed in the Preface (Companion site access).

Don’t have the book yet? The landing page stays open — purchase unlocks this gym.

advanced · order 153

Why poll takes Pin

async-pin-01Related book chapters: 13 (optional — this page is complete on its own)Pin

Slug: async-pin-01 · Paired reading: Chapter 13

Prompt

Implement YieldOnce and fn poll_unpin(y: &mut YieldOnce, cx) -> Poll<()> using Pin::new — Unpin types can be pinned safely. Spec: self-referential futures need Pin so they cannot be moved after first poll.