struct CondVarAwait<'a, T> {
id: Option<u64>,
condvar: &'a CondVar,
guard: Option<MutexGuard<'a, T>>,
}Expand description
Future returned by CondVar::wait, resolves once the task is signaled.
Fields§
§id: Option<u64>Waiter id, set while the task is in the waker list.
condvar: &'a CondVar§guard: Option<MutexGuard<'a, T>>Held until the first poll, then released.
Implementations§
Source§impl<'a, T> CondVarAwait<'a, T>
impl<'a, T> CondVarAwait<'a, T>
fn new(condvar: &'a CondVar, guard: MutexGuard<'a, T>) -> Self
Trait Implementations§
Source§impl<T> Drop for CondVarAwait<'_, T>
impl<T> Drop for CondVarAwait<'_, T>
Source§impl<T> Future for CondVarAwait<'_, T>
impl<T> Future for CondVarAwait<'_, T>
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for CondVarAwait<'a, T>
impl<'a, T> !UnwindSafe for CondVarAwait<'a, T>
impl<'a, T> Freeze for CondVarAwait<'a, T>
impl<'a, T> Send for CondVarAwait<'a, T>where
T: Send,
impl<'a, T> Sync for CondVarAwait<'a, T>
impl<'a, T> Unpin for CondVarAwait<'a, T>
impl<'a, T> UnsafeUnpin for CondVarAwait<'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