pub struct AsyncContext<C, T, F>where
C: 'static,
F: Future<Output = T>,{ /* private fields */ }
Expand description
Stores a future along with the async context provided for it. Create AsyncContext using provide_async_context Access the context using with_async_context or with_async_context_mut
Trait Implementations§
Source§impl<C, T, F> Future for AsyncContext<C, T, F>where
F: Future<Output = T>,
impl<C, T, F> Future for AsyncContext<C, T, F>where
F: Future<Output = T>,
impl<'pin, C, T, F> Unpin for AsyncContext<C, T, F>
Auto Trait Implementations§
impl<C, T, F> !Freeze for AsyncContext<C, T, F>
impl<C, T, F> RefUnwindSafe for AsyncContext<C, T, F>where
F: RefUnwindSafe,
impl<C, T, F> Send for AsyncContext<C, T, F>
impl<C, T, F> Sync for AsyncContext<C, T, F>
impl<C, T, F> UnwindSafe for AsyncContext<C, T, 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
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