pub struct Pending<F>(pub F);Expand description
Wraps a future returned by an async jig so the chain remains spelled with .then.
The #[jig] macro converts async fn jigs into ordinary functions returning
Pending<impl Future<Output = T>>. Pending itself impls IntoFuture, so the
final .await resolves the whole chain.
Tuple Fields§
§0: FImplementations§
Trait Implementations§
Source§impl<F> IntoFuture for Pending<F>where
F: Future,
impl<F> IntoFuture for Pending<F>where
F: Future,
Auto Trait Implementations§
impl<F> Freeze for Pending<F>where
F: Freeze,
impl<F> RefUnwindSafe for Pending<F>where
F: RefUnwindSafe,
impl<F> Send for Pending<F>where
F: Send,
impl<F> Sync for Pending<F>where
F: Sync,
impl<F> Unpin for Pending<F>where
F: Unpin,
impl<F> UnsafeUnpin for Pending<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for Pending<F>where
F: UnwindSafe,
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