pub struct GuestTaskId(/* private fields */);Available on crate features
component-model-async and component-model and runtime only.Expand description
An identifier representing a guest task within a component.
This can be acquired by calling Func::start_call_concurrent or
TypedFunc::start_call_concurrent and then using the
FuncCallConcurrent::task accessor, for example. This can then be
reflected on with StoreContextMut::async_call_stack.
Trait Implementations§
Source§impl Clone for GuestTaskId
impl Clone for GuestTaskId
Source§fn clone(&self) -> GuestTaskId
fn clone(&self) -> GuestTaskId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GuestTaskId
Source§impl Debug for GuestTaskId
impl Debug for GuestTaskId
impl Eq for GuestTaskId
Source§impl Hash for GuestTaskId
impl Hash for GuestTaskId
Source§impl Ord for GuestTaskId
impl Ord for GuestTaskId
Source§fn cmp(&self, other: &GuestTaskId) -> Ordering
fn cmp(&self, other: &GuestTaskId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GuestTaskId
impl PartialEq for GuestTaskId
Source§fn eq(&self, other: &GuestTaskId) -> bool
fn eq(&self, other: &GuestTaskId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GuestTaskId
impl PartialOrd for GuestTaskId
impl StructuralPartialEq for GuestTaskId
Auto Trait Implementations§
impl Freeze for GuestTaskId
impl RefUnwindSafe for GuestTaskId
impl Send for GuestTaskId
impl Sync for GuestTaskId
impl Unpin for GuestTaskId
impl UnsafeUnpin for GuestTaskId
impl UnwindSafe for GuestTaskId
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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