pub struct Task { /* private fields */ }Available on
tokio_unstable and tokio_taskdump and crate feature rt and Linux and (AArch64 or x86 or x86-64) only.Expand description
A snapshot of a task.
See Handle::dump.
Implementations§
Source§impl Task
impl Task
Sourcepub fn id(&self) -> Id
pub fn id(&self) -> Id
Returns a task ID that uniquely identifies this task relative to other tasks spawned at the time of the dump.
Note: This is an unstable API. The public API of this type may break in 1.x releases. See the documentation on unstable features for details.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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