Trait concurrency_traits::mutex::AsyncMutex [−][src]
pub trait AsyncMutex<'a>: TryMutex<'a> { #[must_use] fn lock_async<'async_trait>(
&'a self
) -> Pin<Box<dyn Future<Output = Self::Guard> + Send + 'async_trait>>
where
'a: 'async_trait,
Self: 'async_trait; }
Expand description
A generic async mutex trait
Required methods
Implementors
impl<'a, T, M> AsyncMutex<'a> for CustomMutex<T, M> where
T: 'a + Send,
M: RawAsyncMutex + 'a + Send + Sync,
[src]
impl<'a, T, M> AsyncMutex<'a> for CustomMutex<T, M> where
T: 'a + Send,
M: RawAsyncMutex + 'a + Send + Sync,
[src]