Use And Change Mutex Value In A Rust Struct Object
I'm still new to rust. There might be different/better ways to do this, but this is working for me for a cache
rust
use Mutex;
m = Mutex { data: 5, poisoned: false, .. } m = Mutex { data: 7, poisoned: false, .. }