pub struct UpgradeArc<T: ?Sized> {
_inner: FutureWrapper<UpgradeArcInner<T>>,
}Expand description
The future returned by RwLockUpgradableReadGuardArc::upgrade.
Fields§
§_inner: FutureWrapper<UpgradeArcInner<T>>Implementations§
Source§impl<T: ?Sized> UpgradeArc<T>
impl<T: ?Sized> UpgradeArc<T>
fn _new(inner: UpgradeArcInner<T>) -> Self
pub(crate) fn wait(self) -> RwLockWriteGuardArc<T>
pub(crate) fn poll_with_strategy<'__strategy, __S: Strategy<'__strategy>>( self: Pin<&mut Self>, strategy: &mut __S, context: &mut __S::Context, ) -> Poll<RwLockWriteGuardArc<T>>
Source§impl<T: ?Sized> UpgradeArc<T>
impl<T: ?Sized> UpgradeArc<T>
pub(super) unsafe fn new( raw: ManuallyDrop<RawUpgrade<'static>>, lock: ManuallyDrop<Arc<RwLock<T>>>, ) -> Self
Trait Implementations§
Source§impl<T: ?Sized> Debug for UpgradeArc<T>
impl<T: ?Sized> Debug for UpgradeArc<T>
Source§impl<T: ?Sized> Future for UpgradeArc<T>
impl<T: ?Sized> Future for UpgradeArc<T>
Source§type Output = RwLockWriteGuardArc<T>
type Output = RwLockWriteGuardArc<T>
The type of value produced on completion.
impl<'__pin, T: ?Sized> Unpin for UpgradeArc<T>where
PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,
Auto Trait Implementations§
impl<T> Freeze for UpgradeArc<T>where
T: ?Sized,
impl<T> !RefUnwindSafe for UpgradeArc<T>
impl<T> Send for UpgradeArc<T>
impl<T> Sync for UpgradeArc<T>
impl<T> !UnwindSafe for UpgradeArc<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more