Lines Matching refs:MutexGuard
140 pub struct MutexGuard<'a, T: ?Sized> { struct
168 unsafe impl<T> Sync for MutexGuard<'_, T> where T: ?Sized + Send + Sync {} implementation
207 check_send::<MutexGuard<'_, u32>>(); in bounds()
278 pub async fn lock(&self) -> MutexGuard<'_, T> { in lock()
280 MutexGuard { lock: self } in lock()
339 pub fn try_lock(&self) -> Result<MutexGuard<'_, T>, TryLockError> { in try_lock()
341 Ok(_) => Ok(MutexGuard { lock: self }), in try_lock()
454 impl<T: ?Sized> Drop for MutexGuard<'_, T> { implementation
460 impl<T: ?Sized> Deref for MutexGuard<'_, T> { implementation
467 impl<T: ?Sized> DerefMut for MutexGuard<'_, T> { implementation
473 impl<T: ?Sized + fmt::Debug> fmt::Debug for MutexGuard<'_, T> { implementation
479 impl<T: ?Sized + fmt::Display> fmt::Display for MutexGuard<'_, T> { implementation