Trait concurrency_traits::RawAsyncTimeoutMutex [−][src]
pub trait RawAsyncTimeoutMutex: RawAsyncMutex { type LockTimeoutFuture: Future<Output = bool>; fn lock_timeout_async(&self, timeout: Duration) -> Self::LockTimeoutFuture; }
A raw async mutex that can be timed out and holds no data.
Associated Types
type LockTimeoutFuture: Future<Output = bool>
[src]
The future returned by RawAsyncTimeoutMutex::lock_timeout_async
Required methods
fn lock_timeout_async(&self, timeout: Duration) -> Self::LockTimeoutFuture
[src]
Locks the mutex on a timeout asynchronously. Returns true if locked.