pub struct WaitUntilOrTimeout<'a, F: FnMut() -> Option<T>, T, D: Future<Output = ()>> { /* private fields */ }
Expand description
A future that can be await
ed until a predicate is satisfied or until a
deadline elapses.
Trait Implementations§
Source§impl<'a, F, T, D> Future for WaitUntilOrTimeout<'a, F, T, D>
impl<'a, F, T, D> Future for WaitUntilOrTimeout<'a, F, T, D>
impl<'__pin, 'a, F: FnMut() -> Option<T>, T, D: Future<Output = ()>> Unpin for WaitUntilOrTimeout<'a, F, T, D>where
__Origin<'__pin, 'a, F, T, D>: Unpin,
Auto Trait Implementations§
impl<'a, F, T, D> Freeze for WaitUntilOrTimeout<'a, F, T, D>
impl<'a, F, T, D> !RefUnwindSafe for WaitUntilOrTimeout<'a, F, T, D>
impl<'a, F, T, D> Send for WaitUntilOrTimeout<'a, F, T, D>
impl<'a, F, T, D> !Sync for WaitUntilOrTimeout<'a, F, T, D>
impl<'a, F, T, D> !UnwindSafe for WaitUntilOrTimeout<'a, F, T, D>
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