Trait concurrency_traits::rw_lock::UpgradeTimeoutReadGuard[][src]

pub trait UpgradeTimeoutReadGuard<'a>: TryUpgradeReadGuard<'a> {
    fn upgrade_timeout(
        self,
        timeout: Duration
    ) -> Result<Self::WriteGuard, Self>; }
Expand description

A read guard that can be upgraded to a write guard

Required methods

fn upgrade_timeout(self, timeout: Duration) -> Result<Self::WriteGuard, Self>[src]

Upgrades this read guard into a write guard, blocking until done

Implementors

impl<'a, T, R> UpgradeTimeoutReadGuard<'a> for CustomReadGuard<'a, T, R> where
    R: RawUpgradeTimeoutRwLock
[src]

fn upgrade_timeout(self, timeout: Duration) -> Result<Self::WriteGuard, Self>[src]