Trait concurrency_traits::RawAsyncMutex [−][src]
pub trait RawAsyncMutex: RawTryMutex { type LockFuture: Future<Output = ()>; fn lock_async(&self) -> Self::LockFuture; }
A raw async mutex that hold no data but the lock itself.
Associated Types
type LockFuture: Future<Output = ()>
[src]
The future returned by RawAsyncMutex::lock_async
Required methods
fn lock_async(&self) -> Self::LockFuture
[src]
Locks the mutex asynchronously
Implementors
impl<M, Q> RawAsyncMutex for RawCustomAsyncMutex<M, Q> where
M: 'static + RawMutex + Send + Sync,
Q: 'static + Queue<Item = RawCustomAsyncMutexMessage> + Send + Sync,
[src]
impl<M, Q> RawAsyncMutex for RawCustomAsyncMutex<M, Q> where
M: 'static + RawMutex + Send + Sync,
Q: 'static + Queue<Item = RawCustomAsyncMutexMessage> + Send + Sync,
[src]