Struct future_wrap::WrappedFuture
source · [−]pub struct WrappedFuture<Fut, F, O> where
Fut: Future,
F: FnMut(Pin<&mut Fut>, &mut Context<'_>) -> Poll<O>, { /* private fields */ }Trait Implementations
sourceimpl<Fut, F, O> Future for WrappedFuture<Fut, F, O> where
Fut: Future,
F: FnMut(Pin<&mut Fut>, &mut Context<'_>) -> Poll<O>,
impl<Fut, F, O> Future for WrappedFuture<Fut, F, O> where
Fut: Future,
F: FnMut(Pin<&mut Fut>, &mut Context<'_>) -> Poll<O>,
impl<'pin, Fut, F, O> Unpin for WrappedFuture<Fut, F, O> where
Fut: Future,
F: FnMut(Pin<&mut Fut>, &mut Context<'_>) -> Poll<O>,
__WrappedFuture<'pin, Fut, F, O>: Unpin,
Auto Trait Implementations
impl<Fut, F, O> RefUnwindSafe for WrappedFuture<Fut, F, O> where
F: RefUnwindSafe,
Fut: RefUnwindSafe,
impl<Fut, F, O> Send for WrappedFuture<Fut, F, O> where
F: Send,
Fut: Send,
impl<Fut, F, O> Sync for WrappedFuture<Fut, F, O> where
F: Sync,
Fut: Sync,
impl<Fut, F, O> UnwindSafe for WrappedFuture<Fut, F, O> where
F: UnwindSafe,
Fut: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F> IntoFuture for F where
F: Future,
impl<F> IntoFuture for F where
F: Future,
type Output = <F as Future>::Output
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future)The output that the future will produce on completion.
type IntoFuture = F
type IntoFuture = F
🔬 This is a nightly-only experimental API. (
into_future)Which kind of future are we turning this into?
sourcefn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
🔬 This is a nightly-only experimental API. (
into_future)Creates a future from a value.
sourceimpl<F, O> WrapFuture<O> for F where
F: Future,
impl<F, O> WrapFuture<O> for F where
F: Future,
fn wrap<F>(self, f: F) -> WrappedFuture<Self, F, O>ⓘNotable traits for WrappedFuture<Fut, F, O>impl<Fut, F, O> Future for WrappedFuture<Fut, F, O> where
Fut: Future,
F: FnMut(Pin<&mut Fut>, &mut Context<'_>) -> Poll<O>, type Output = O; where
F: FnMut(Pin<&mut Self>, &mut Context<'_>) -> Poll<O>,
Fut: Future,
F: FnMut(Pin<&mut Fut>, &mut Context<'_>) -> Poll<O>, type Output = O;