pub struct Mutex<T: ?Sized> { /* private fields */ }
Implementations
sourceimpl<T: ?Sized> Mutex<T>
impl<T: ?Sized> Mutex<T>
pub fn lock(&self) -> LockResult<MutexGuard<'_, T>>
pub fn try_lock(&self) -> TryLockResult<MutexGuard<'_, T>>
pub fn is_poisoned(&self) -> bool
pub fn into_inner(self) -> LockResult<T> where
T: Sized,
pub fn get_mut(&mut self) -> LockResult<&mut T>
Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Mutex<T>
impl<T: ?Sized + Send> Send for Mutex<T>
impl<T: ?Sized + Send> Sync for Mutex<T>
impl<T: ?Sized> UnwindSafe for Mutex<T>
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more