pub enum CondvarWaitFuture<'a, T> {
WaitingForNotification {
condvar: &'a Condvar,
guard: MutexGuard<'a, T>,
},
WaitingForMutex {
guard: MutexLockFuture<'a, T>,
},
}
Expand description
A future that resolves once a condition variable is notified.
Variants§
WaitingForNotification
The future is waiting for a notification.
Fields
§
guard: MutexGuard<'a, T>
The mutex guard that was unlocked.
WaitingForMutex
The future is waiting for a Mutex
to lock
Fields
§
guard: MutexLockFuture<'a, T>
The mutex lock future.
Trait Implementations§
Source§impl<'a, T> Future for CondvarWaitFuture<'a, T>
impl<'a, T> Future for CondvarWaitFuture<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for CondvarWaitFuture<'a, T>
impl<'a, T> !RefUnwindSafe for CondvarWaitFuture<'a, T>
impl<'a, T> Send for CondvarWaitFuture<'a, T>where
T: Send,
impl<'a, T> Sync for CondvarWaitFuture<'a, T>where
T: Send,
impl<'a, T> Unpin for CondvarWaitFuture<'a, T>
impl<'a, T> !UnwindSafe for CondvarWaitFuture<'a, 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