pub struct Recursion<F>(/* private fields */);Expand description
A recursive call of an async algorithm.
The callee lives on the heap, like a Box::pin of it would, and every poll
of it runs through on_sufficient_stack, so polling a chain of nested
calls cannot exhaust the native stack.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for Recursion<F>
impl<F> RefUnwindSafe for Recursion<F>
impl<F> Send for Recursion<F>
impl<F> Sync for Recursion<F>
impl<F> Unpin for Recursion<F>
impl<F> UnsafeUnpin for Recursion<F>
impl<F> UnwindSafe for Recursion<F>
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<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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