Trait concurrency_traits::rw_lock::AsyncUpgradeReadGuard[][src]

pub trait AsyncUpgradeReadGuard<'a>: Sized + TryUpgradeReadGuard<'a> {
    #[must_use]
    fn upgrade_async<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Self::WriteGuard> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }
Expand description

A read guard that can be upgraded to a write guard asynchronously

Required methods

#[must_use]
fn upgrade_async<'async_trait>(
    self
) -> Pin<Box<dyn Future<Output = Self::WriteGuard> + Send + 'async_trait>> where
    Self: 'async_trait, 
[src]

Upgrades this guard asynchronously, returning a future that will contain the upgraded guard.

Implementors

impl<'a, T, R> AsyncUpgradeReadGuard<'a> for CustomReadGuard<'a, T, R> where
    T: 'a + Send + Sync,
    R: RawAsyncUpgradeRwLock + 'a + Send + Sync
[src]

fn upgrade_async<'async_trait>(
    self
) -> Pin<Box<dyn Future<Output = Self::WriteGuard> + Send + 'async_trait>> where
    Self: 'async_trait, 
[src]