Struct tokio_util::task::task_tracker::TaskTrackerToken
source · pub struct TaskTrackerToken { /* private fields */ }
Available on crate feature
rt
only.Expand description
Represents a task tracked by a TaskTracker
.
Implementations§
source§impl TaskTrackerToken
impl TaskTrackerToken
sourcepub fn task_tracker(&self) -> &TaskTracker
pub fn task_tracker(&self) -> &TaskTracker
Returns the TaskTracker
that this token is associated with.
Trait Implementations§
source§impl Clone for TaskTrackerToken
impl Clone for TaskTrackerToken
source§fn clone(&self) -> TaskTrackerToken
fn clone(&self) -> TaskTrackerToken
Returns a new TaskTrackerToken
associated with the same TaskTracker
.
This is equivalent to token.task_tracker().token()
.
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TaskTrackerToken
impl Debug for TaskTrackerToken
source§impl Drop for TaskTrackerToken
impl Drop for TaskTrackerToken
source§fn drop(&mut self)
fn drop(&mut self)
Dropping the token indicates to the TaskTracker
that the task has exited.
Auto Trait Implementations§
impl Freeze for TaskTrackerToken
impl RefUnwindSafe for TaskTrackerToken
impl Send for TaskTrackerToken
impl Sync for TaskTrackerToken
impl Unpin for TaskTrackerToken
impl UnwindSafe for TaskTrackerToken
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)