Useful Links
Computer Science
Programming
By Language
Rust Programming
1. Getting Started with Rust
2. Rust Fundamentals
3. Understanding Ownership
4. Structuring Data with Structs
5. Enums and Pattern Matching
6. Managing Growing Projects
7. Common Collections
8. Error Handling
9. Generic Types, Traits, and Lifetimes
10. Writing Automated Tests
11. Functional Programming Features
12. Smart Pointers
13. Fearless Concurrency
14. Advanced Features
15. Foreign Function Interface
16. Rust Patterns and Best Practices
Fearless Concurrency
Thread Basics
Creating Threads
thread::spawn Function
Thread Closures
Thread Handles
JoinHandle Type
join Method
Thread Results
move Closures with Threads
Thread Panics and Isolation
Message Passing
Channel Creation
mpsc::channel Function
Sender and Receiver Types
Sending Messages
send Method
Error Handling
Receiving Messages
recv Method
try_recv Method
recv_timeout Method
Multiple Producers
Cloning Senders
Multiple Sender Threads
Channel Closure
Automatic Cleanup
Receiver Iteration
Shared State Concurrency
Mutex<T> Mutual Exclusion
Mutex Creation
lock Method
LockResult and PoisonError
MutexGuard Type
Arc<T> Atomic Reference Counting
Thread-Safe Reference Counting
Sharing Data Across Threads
Combining Arc and Mutex
Deadlock Prevention
Performance Considerations
Send and Sync Traits
Send Trait
Transfer Ownership Between Threads
Send Implementations
Sync Trait
Safe Sharing Between Threads
Sync Implementations
Marker Trait Characteristics
Custom Type Thread Safety
Previous
12. Smart Pointers
Go to top
Next
14. Advanced Features