pub struct FuncCallConcurrent<'a, T> { /* private fields */ }Available on crate features
component-model-async and component-model and runtime only.Expand description
Returned from Func::start_call_concurrent to represent a
pending-but-not-yet-resolved call into wasm.
Implementations§
Source§impl<T> FuncCallConcurrent<'_, T>
impl<T> FuncCallConcurrent<'_, T>
Sourcepub fn task(&self) -> GuestTaskId
pub fn task(&self) -> GuestTaskId
Returns the task that this invocation corresponds to.
This can be later correlated with StoreContextMut::async_call_stack
for example.
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for FuncCallConcurrent<'a, T>
impl<'a, T> !UnwindSafe for FuncCallConcurrent<'a, T>
impl<'a, T> Freeze for FuncCallConcurrent<'a, T>
impl<'a, T> Send for FuncCallConcurrent<'a, T>
impl<'a, T> Sync for FuncCallConcurrent<'a, T>
impl<'a, T> Unpin for FuncCallConcurrent<'a, T>
impl<'a, T> UnsafeUnpin for FuncCallConcurrent<'a, T>
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