Home
last modified time | relevance | path

Searched refs:OwnedMutexGuard (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/tokio/src/sync/
Dmutex.rs159 pub struct OwnedMutexGuard<T: ?Sized> { struct
169 unsafe impl<T> Sync for OwnedMutexGuard<T> where T: ?Sized + Send + Sync {} implementation
208 check_send::<OwnedMutexGuard<u32>>(); in bounds()
211 check_static::<OwnedMutexGuard<u32>>(); in bounds()
309 pub async fn lock_owned(self: Arc<Self>) -> OwnedMutexGuard<T> { in lock_owned()
311 OwnedMutexGuard { lock: self } in lock_owned()
394 pub fn try_lock_owned(self: Arc<Self>) -> Result<OwnedMutexGuard<T>, TryLockError> { in try_lock_owned()
396 Ok(_) => Ok(OwnedMutexGuard { lock: self }), in try_lock_owned()
487 impl<T: ?Sized> Drop for OwnedMutexGuard<T> { implementation
493 impl<T: ?Sized> Deref for OwnedMutexGuard<T> { implementation
[all …]
Dmod.rs439 pub use mutex::{Mutex, MutexGuard, TryLockError, OwnedMutexGuard};
/external/rust/crates/tokio/
DCHANGELOG.md651 - sync: `OwnedMutexGuard` for `Arc<Mutex<T>>` ([#2455]).