Struct Task Pool Task Handle
Source pub struct TaskPoolTaskHandle { /* private fields */ }Expand description
An opaque handle for a task associated with a particular task pool.
Keeps a reference to the pool alive.
If the v1_20 feature is enabled, requests the task pool to dispose of the handle when it is
dropped. Otherwise, needs to be joined to avoid a leak.
Trait Implementations§
Source§impl Debug for TaskPoolTaskHandle
impl Debug for TaskPoolTaskHandle
Source§impl Drop for TaskPoolTaskHandle
impl Drop for TaskPoolTaskHandle
Source§impl Hash for TaskPoolTaskHandle
impl Hash for TaskPoolTaskHandle
Source§impl Ord for TaskPoolTaskHandle
impl Ord for TaskPoolTaskHandle
Source§fn cmp(&self, other: &TaskPoolTaskHandle) -> Ordering
fn cmp(&self, other: &TaskPoolTaskHandle) -> Ordering
1.21.0 · 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 TaskPoolTaskHandle
impl PartialEq for TaskPoolTaskHandle
Source§impl PartialOrd for TaskPoolTaskHandle
impl PartialOrd for TaskPoolTaskHandle
Source§impl TaskHandle for TaskPoolTaskHandle
impl TaskHandle for TaskPoolTaskHandle
impl Eq for TaskPoolTaskHandle
impl StructuralPartialEq for TaskPoolTaskHandle
Auto Trait Implementations§
impl Freeze for TaskPoolTaskHandle
impl RefUnwindSafe for TaskPoolTaskHandle
impl !Send for TaskPoolTaskHandle
impl !Sync for TaskPoolTaskHandle
impl Unpin for TaskPoolTaskHandle
impl UnwindSafe for TaskPoolTaskHandle
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