Trait concurrency_traits::AsyncUpgradeReadGuard [−][src]
pub trait AsyncUpgradeReadGuard<'a>: Sized { type Item: ?Sized; type AsyncWriteGuard: DerefMut<Target = Self::Item>; type UpgradeFuture: Future<Output = Self::AsyncWriteGuard>; fn upgrade_async(self) -> Self::UpgradeFuture; }
A read guard that can be upgraded to a write guard asynchronously
Associated Types
type Item: ?Sized
[src]
Item guarded by this guard
type AsyncWriteGuard: DerefMut<Target = Self::Item>
[src]
The write guard this upgrades to
type UpgradeFuture: Future<Output = Self::AsyncWriteGuard>
[src]
The future returned by upgrade_async
Required methods
fn upgrade_async(self) -> Self::UpgradeFuture
[src]
Upgrades this guard asynchronously, returning a future that will contain the upgraded guard.