How to convert Arc> to Arc? Or maybe I need something else
⚓ Rust 📅 2025-05-11 👤 surdeus 👁️ 13I've prepared the example.
I need to run some jobs within the struct's method in tokio::spawn but also I need to have mutable access to the struct. Without mutability it works well by means of Arc, but to have possibility to mutate the struct's object, I need to use Arc<Mutex and it breaks everything.
7 posts - 3 participants
🏷️ rust_feed