Trait concurrency_traits::rw_lock::RawAsyncTimeoutUpgradeRwLock[][src]

pub unsafe trait RawAsyncTimeoutUpgradeRwLock: RawTryUpgradeRwLock {
    #[must_use]
    unsafe fn upgrade_timeout_async<'life0, 'async_trait>(
        &'life0 self,
        timeout: Duration
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Raw version of AsyncTimeoutUpgradeRwLock.

Required methods

#[must_use]
unsafe fn upgrade_timeout_async<'life0, 'async_trait>(
    &'life0 self,
    timeout: Duration
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Upgrades a reader to a writer asynchronously with a timeout. Returns true on success.

Safey

Caller must ensure a reader exists.

Implementors