You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
I'm relatively new to Rust, and I've been going in circles trying to figure this out. The problem I'm having is implementing a trait with a function taking &self in which I must lock a mutex_trait::Mutex implementation.
I am writing a library. I'm trying to make it generic for the implementation of mutex_trait::Mutex.
Using an implementation of mutex_trait::Mutex for &_ looked promising, but that would necessarily tie Object to the concrete type. I would prefer the mutex used to be shareable.
I don't know where to go from here and would greatly appreciate being pointed in the right direction.