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