Why can Pin<Box<T>> directly call Future::poll when it expects Pin<&mut Self>

· Users Rust Lang · Sept. 3, 2026, 6:49 a.m.
Summary
This post discusses a specific technical detail related to Rust's Pin<Box<T>> and its ability to directly call Future::poll, suggesting it may be due to Rust's dereferencing mechanisms and how Box handles heap allocations. It includes a reference to Rust documentation, particularly focusing on mutable references and downcasting in error handling.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →