Rust's ownership rules and strong type system help Rust managing memory safety and concurrency problems. So by leveraging this Rust is able to catch lots of concurrency problems at compile time. This is nicknamed in Rust as Fearless Concurrency.
- How to create threads to run multiple pieces of code at the same time
- Message passing concurrency where channels send messages between threads
- Shared state concurrency where multiple threads have access to some piece of data
- The
Sync
andSend
traits which extend Rust's concurrency guarantees to user defined types as well as those provided in the standard library