pub struct Mutex<R, T: ?Sized>(/* private fields */);Expand description
Wrap `BlockingMutex`` and only provide try_lock and try_with_lock methods.
Implementations§
Auto Trait Implementations§
impl<R, T> !Freeze for Mutex<R, T>
impl<R, T> !RefUnwindSafe for Mutex<R, T>
impl<R, T> Send for Mutex<R, T>
impl<R, T> Sync for Mutex<R, T>
impl<R, T> Unpin for Mutex<R, T>
impl<R, T> UnwindSafe for Mutex<R, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more