pub struct AsyncFnPollEnv<'tcx> {
pub async_fn_parent: Option<Instance<'tcx>>,
pub creation_loc: Location,
pub generator_data: Place<'tcx>,
}
Expand description
Context for a call to Future::poll
, when
called on a future created via an async fn
or an async block.
Fields§
§async_fn_parent: Option<Instance<'tcx>>
If the generator came from an async fn
, then this is that function. If
it is from an async block, this is None
.
creation_loc: Location
Where was the async fn
called, or where was the async block created.
generator_data: Place<'tcx>
A place which carries the runtime value representing the generator in the caller.
Auto Trait Implementations§
impl<'tcx> Freeze for AsyncFnPollEnv<'tcx>
impl<'tcx> !RefUnwindSafe for AsyncFnPollEnv<'tcx>
impl<'tcx> Send for AsyncFnPollEnv<'tcx>
impl<'tcx> Sync for AsyncFnPollEnv<'tcx>
impl<'tcx> Unpin for AsyncFnPollEnv<'tcx>
impl<'tcx> !UnwindSafe for AsyncFnPollEnv<'tcx>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more