pub struct Task { /* private fields */ }
Available on crate feature
rt
only.Expand description
A snapshot of a task.
See Handle::dump.
Implementations§
Source§impl Task
impl Task
Sourcepub fn id(&self) -> Id
Available on tokio_unstable
only.
pub fn id(&self) -> Id
tokio_unstable
only.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