pub struct TryDrainFuture<'p, F: Future, M: SlotMemory<F>, D: FnMut(F::Output) -> Result<(), E>, E> { /* private fields */ }Expand description
The future returned from SlotPoller::try_drain.
This future will poll all the futures inside the slot poller. When one of them completes, the result is handled by the drain function, which can return an error if it wants to abort the drain.
Trait Implementations§
Source§impl<'p, F, M, D, E> Future for TryDrainFuture<'p, F, M, D, E>
impl<'p, F, M, D, E> Future for TryDrainFuture<'p, F, M, D, E>
Auto Trait Implementations§
impl<'p, F, M, D, E> Freeze for TryDrainFuture<'p, F, M, D, E>where
D: Freeze,
impl<'p, F, M, D, E> !RefUnwindSafe for TryDrainFuture<'p, F, M, D, E>
impl<'p, F, M, D, E> !Send for TryDrainFuture<'p, F, M, D, E>
impl<'p, F, M, D, E> !Sync for TryDrainFuture<'p, F, M, D, E>
impl<'p, F, M, D, E> Unpin for TryDrainFuture<'p, F, M, D, E>
impl<'p, F, M, D, E> !UnwindSafe for TryDrainFuture<'p, F, M, D, E>
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