Rust Stream: The Guard Pattern and Interior Mutability

  Рет қаралды 8,558

Ryan Levick

Ryan Levick

Күн бұрын

A stream meant for "advanced beginners" of Rust on the "guard pattern" a common API construct for wrapping items in order to do things when those items are no longer used. In this video we implement a simple resource pool that allows users to get items from a pool and returns those items to the pool when they're no longer needed.

Пікірлер: 11
@cryptomando
@cryptomando 2 жыл бұрын
Really enjoying how you talk through what you are doing. Thanks so much
@bjugdbjk
@bjugdbjk 2 жыл бұрын
Fantastic content! Theese kind of demos really helps to understand rust in deep. Pls make new live streams, newbies who wana become rustaceans really need it.
@dsincl12
@dsincl12 4 жыл бұрын
Great episode. Improvement for the next episode, 40% of your screen was a black section and the VS Code file drawer :) Keep up the good work!
@ccprt1275
@ccprt1275 3 жыл бұрын
These streams are brilliant, they've been helping me so much to really understand the concepts in the book. Any chance of them continuing in the future or more videos from past streams becoming available?
@cryptomando
@cryptomando 2 жыл бұрын
Yes! More videos please
@jaysistar2711
@jaysistar2711 4 жыл бұрын
I got here by searching "rust stream", which meant the `Stream` type in the `futures` crate. Good content, but please make a stream on `Stream`! 😀
@AlexanderKrivacsSchrder
@AlexanderKrivacsSchrder 4 жыл бұрын
20:45 "RefCell is not Sync and not Send" -- that is not true. RefCell is Send, but it is not Sync, as there's no danger in sending it to another thread; it's only dangerous to share it with other threads. I don't know if you correct this later in the stream, so I'm sorry if this comment is premature, but I'm just writing it now so I don't forget to in 40 minutes when the stream has ended. ;)
@LeandroCoutinho
@LeandroCoutinho 4 жыл бұрын
Thanks very much Ryan! Very nice. Maybe show how to use mutex now =)
@NicolasMoriarty
@NicolasMoriarty 4 жыл бұрын
Thanks! Great video!
@MarcusWillock
@MarcusWillock 4 жыл бұрын
Thanks for the video!!!
@abessesmahi4888
@abessesmahi4888 4 жыл бұрын
Thank you so much Subscribed
Rust Stream: Iterators
2:00:31
Ryan Levick
Рет қаралды 9 М.
Boiled Down Crate 🦀: OnceCell
1:59:32
Ryan Levick
Рет қаралды 6 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Crust of Rust: Smart Pointers and Interior Mutability
2:03:04
Jon Gjengset
Рет қаралды 134 М.
Rust Stream: Ownership, Closures, and Threads - Oh My!
1:57:38
Ryan Levick
Рет қаралды 39 М.
Smart Pointers in Rust - Interior Mutability
17:04
Let's Get Rusty
Рет қаралды 46 М.
Stream: Basic Redis Client in Rust
1:48:08
Ryan Levick
Рет қаралды 10 М.
Introduction to Rust Part 2
1:56:03
Ryan Levick
Рет қаралды 32 М.
Pascal Hertleif - Writing Idiomatic Libraries in Rust
27:53
Implementing Rust's Vec From Scratch
2:04:03
Ryan Levick
Рет қаралды 29 М.
Rust Interior Mutability - Sneaking By The Borrow Checker
16:02
Code to the Moon
Рет қаралды 77 М.
A Singly Linked List in Rust
1:19:30
Ryan Levick
Рет қаралды 19 М.
Implement Methods on Rust Structs 🦀
27:27
Trevor Sullivan
Рет қаралды 7 М.
КОРОЧЕ ГОВОРЯ, НЕДЕЛЯ БЕЗ ТЕЛЕФОНА
3:54
#trending #foryou #challenge #fyp #viral #short #tiktok #vs
0:15
Misiсatсh
Рет қаралды 2,4 МЛН
Абзал неге келді? 4.10.22
3:53
QosLike fan club
Рет қаралды 31 М.
When the PHONE CASE can be your BEST FRIEND! #shorts
0:33
One More
Рет қаралды 18 МЛН
(✋❌)kageihina VS siajiwoo VS meosimmyyt VS oxzung#tiktok #shorts
0:12
для всей семьи
0:56
Стакановец
Рет қаралды 191 М.