Pinning - Asynchronous Programming in Rust: Why, What, and How

Pinning - Asynchronous Programming in Rust: Why, What, and How

The Why, What, and How of Pinning in Rust. With the Future trait stabilized and async/await coming soon, many more people are being exposed to the Pin type and its sibling trait Unpin. In this video, we dive deep into what these types are, why they are needed, how they work, and how to use them. Pinning - Asynchronous Programming in Rust.

The Why, What, and How of Pinning in Rust

With the Future trait stabilized and async/await coming soon, many more people are being exposed to the Pin type and its sibling trait Unpin. In this video, we dive deep into what these types are, why they are needed, how they work, and how to use them. We also dig into the connection to Futures and async/await, and discuss how you safely move from old code that does not use pinning to new code that does.

This is pretty dense and subtle material, but hopefully serves as a good and thorough overview of pinning in Rust. If you want to know how it all fits together, this stream probably has you covered! To help you navigate, here are the major transition points:

0:03:50 — What's the problem we're trying to solve?
0:28:19 — How does pinning help?
0:31:55 — What is Unpin?
0:35:14 — Working with pinned types
0:44:20 — An example of implementing Future
0:51:02 — Pin::new vs Pin::new_unchecked
0:59:16 — The problem with Drop
1:03:13 — Quick recap
1:07:26 — Why impl Unpin is safe
1:12:34 — Structural pinning
1:30:14 — The curious case of Box::pin
1:50:49 — Avoiding unsafe with pin-project
2:04:59 — Why is Pin::set okay?
2:08:03 — Pinning beyond Future
2:12:30 — Some quick questions
2:17:02 — Real-world examples of transitioning to Pin in tower
2:26:34 — pin-project and Drop
2:34:17 — Q&A!

Hire Dedicated eCommerce Web Developers | Top eCommerce Web Designers

Hire Dedicated eCommerce Web Developers | Top eCommerce Web Designers

Build your eCommerce project by hiring our expert eCommerce Website developers. Our Dedicated Web Designers develop powerful & robust website in a short span of time.

Build your eCommerce project by hiring our expert eCommerce Website developers. Our Dedicated Web Designers develop powerful & robust website in a short span of time.

Hire Now: https://bit.ly/394wdOx

Mobile App Development Company India | Ecommerce Web Development Company India

Mobile App Development Company India | Ecommerce Web Development Company India

Best Mobile App Development Company India, WebClues Global is one of the leading web and mobile app development company. Our team offers complete IT solutions including Cross-Platform App Development, CMS & E-Commerce, and UI/UX Design.

We are custom eCommerce Development Company working with all types of industry verticals and providing them end-to-end solutions for their eCommerce store development.

Know more about Top E-Commerce Web Development Company

Hire PHP Developer and Web Developer for your Online Business

Hire PHP Developer and Web Developer for your Online Business

PHP is widely used open-source scripting language it helps in making dynamically easy your websites and web application. Mobiweb Technology is your best technical partner and offering you solution for any kind of website and application...

PHP is widely used open-source scripting language it helps in making dynamically easy your websites and web application. Mobiweb Technology is your best technical partner and offering you solution for any kind of website and application development. To hire PHP developer and web developer at affordable prices contact Mobiweb Technology via [email protected]