-
The Why, What, and How of Pinning in Rust
- auto traits are
send
,sync
,unpin
- Pin will put a constraint on the item to not be
movable
- future highly uses it
- auto traits are
-
- Self-referential
struct
handle - Once you start polling a future you cant move it again
- As all
future
on await makes astate machine
- Self-referential