pub struct TypedFuncCallConcurrent<T, P, R> { /* private fields */ }Available on crate features
component-model-async and component-model and runtime only.Expand description
Returned from TypedFunc::start_call_concurrent to represent a
pending-but-not-yet-resolved call into wasm.
Implementations§
Source§impl<T, P, R> TypedFuncCallConcurrent<T, P, R>
impl<T, P, R> TypedFuncCallConcurrent<T, P, R>
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<T, P, R> !RefUnwindSafe for TypedFuncCallConcurrent<T, P, R>
impl<T, P, R> !UnwindSafe for TypedFuncCallConcurrent<T, P, R>
impl<T, P, R> Freeze for TypedFuncCallConcurrent<T, P, R>
impl<T, P, R> Send for TypedFuncCallConcurrent<T, P, R>
impl<T, P, R> Sync for TypedFuncCallConcurrent<T, P, R>
impl<T, P, R> Unpin for TypedFuncCallConcurrent<T, P, R>
impl<T, P, R> UnsafeUnpin for TypedFuncCallConcurrent<T, P, R>
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