Mutex<T> (Rust)

Mutex<T> guards data behind a lock so only one thread can access it at a time. In Rust the data lives inside the mutex, so the type system makes it…