pub struct FutureWithContext<'a, F> { /* private fields */ }
Expand description
A future with a context attached to it.
This future will be cancelled when the context is done.
Trait Implementations§
Source§impl<F: Future> Future for FutureWithContext<'_, F>
impl<F: Future> Future for FutureWithContext<'_, F>
impl<'__pin, 'a, F> Unpin for FutureWithContext<'a, F>where
PinnedFieldsOf<__Origin<'__pin, 'a, F>>: Unpin,
Auto Trait Implementations§
impl<'a, F> !Freeze for FutureWithContext<'a, F>
impl<'a, F> !RefUnwindSafe for FutureWithContext<'a, F>
impl<'a, F> Send for FutureWithContext<'a, F>where
F: Send,
impl<'a, F> Sync for FutureWithContext<'a, F>where
F: Sync,
impl<'a, F> !UnwindSafe for FutureWithContext<'a, 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
§impl<F> FutureExt for F
impl<F> FutureExt for F
§fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
Catches panics while polling the future. 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