Open gyscos opened 6 years ago
Just like RefCell<T: 'static> implements ToHandle, shouldn't Mutex<T: 'static> implement it as well? Or do other problems arise?
RefCell<T: 'static>
ToHandle
Mutex<T: 'static>
My use-case is storing a MutexGuard<'static, T> alongside a Arc<Mutex<T>>.
MutexGuard<'static, T>
Arc<Mutex<T>>
Just like
RefCell<T: 'static>
implementsToHandle
, shouldn'tMutex<T: 'static>
implement it as well? Or do other problems arise?My use-case is storing a
MutexGuard<'static, T>
alongside aArc<Mutex<T>>
.