Trait concurrency_traits::RawAsyncTimeoutRwLock [−][src]
pub trait RawAsyncTimeoutRwLock: RawAsyncRwLock { type AddReaderTimeoutFuture: Future<Output = bool>; type AddWriterTimeoutFuture: Future<Output = bool>; fn add_reader_timeout_async(
&self,
timeout: Duration
) -> Self::AddReaderTimeoutFuture; fn add_writer_timeout_async(
&self,
timeout: Duration
) -> Self::AddWriterTimeoutFuture; }
A raw async timeout rw lock that stores no data
Associated Types
type AddReaderTimeoutFuture: Future<Output = bool>
[src]
The future returned by
RawAsyncTimeoutRwLock::add_reader_timeout_async
type AddWriterTimeoutFuture: Future<Output = bool>
[src]
The future returned by
RawAsyncTimeoutRwLock::add_writer_timeout_async
Required methods
fn add_reader_timeout_async(
&self,
timeout: Duration
) -> Self::AddReaderTimeoutFuture
[src]
&self,
timeout: Duration
) -> Self::AddReaderTimeoutFuture
Adds a reader to this lock with a timeout asynchronously. Returns true if successful.
fn add_writer_timeout_async(
&self,
timeout: Duration
) -> Self::AddWriterTimeoutFuture
[src]
&self,
timeout: Duration
) -> Self::AddWriterTimeoutFuture
Adds a writer to this lock with a timeout asynchronously. Returns true if successful.