pub enum MaybeDone<Fut: Future> {
Future(Fut),
Done(Fut::Output),
Gone,
}
Expand description
A future that may have completed.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Fut> Freeze for MaybeDone<Fut>
impl<Fut> RefUnwindSafe for MaybeDone<Fut>
impl<Fut> Send for MaybeDone<Fut>
impl<Fut> Sync for MaybeDone<Fut>
impl<Fut> Unpin for MaybeDone<Fut>
impl<Fut> UnwindSafe for MaybeDone<Fut>
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