Struct this_state::StateFuture
source · pub struct StateFuture<S, C> { /* private fields */ }Expand description
A future that completes when the state matches the given predicate.
This is returned by State::wait_for.
Notes
Unlike most futures, this future can be polled multiple times, even after it has completed.
Implementations§
Trait Implementations§
source§impl<S, C> Drop for StateFuture<S, C>
impl<S, C> Drop for StateFuture<S, C>
impl<S, C> Send for StateFuture<S, C>
impl<S, C> Sync for StateFuture<S, C>
Auto Trait Implementations§
impl<S, C> !RefUnwindSafe for StateFuture<S, C>
impl<S, C> !Unpin for StateFuture<S, C>
impl<S, C> !UnwindSafe for StateFuture<S, C>
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,
§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