Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 435 Bytes

pinning.md

File metadata and controls

11 lines (9 loc) · 435 Bytes

Pinning

  • 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
  • @withoutboats on Pin

    • Self-referential struct handle
    • Once you start polling a future you cant move it again
    • As all future on await makes a state machine