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

Loading content...

Required methods

fn lock_timeout_async(&self, timeout: Duration) -> Self::LockTimeoutFuture[src]

Locks the mutex on a timeout asynchronously. Returns true if locked.

Loading content...

Implementors

Loading content...