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

Loading content...

Required methods

fn add_reader_timeout_async(
    &self,
    timeout: Duration
) -> Self::AddReaderTimeoutFuture
[src]

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]

Adds a writer to this lock with a timeout asynchronously. Returns true if successful.

Loading content...

Implementors

Loading content...