Struct futures_locks::MutexWeak [−][src]
pub struct MutexWeak<T: ?Sized> { /* fields omitted */ }Expand description
MutexWeak is a non-owning reference to a Mutex. MutexWeak is to
Mutex as std::sync::Weak is to std::sync::Arc.
Examples
let mutex = Mutex::<u32>::new(0);
let mutex_weak = Mutex::downgrade(&mutex);
let mutex_new = mutex_weak.upgrade().unwrap();Implementations
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for MutexWeak<T>
impl<T> !UnwindSafe for MutexWeak<T>
Blanket Implementations
Mutably borrows from an owned value. Read more