We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Ord
task::Id
1 parent 2326323 commit dd74c7cCopy full SHA for dd74c7c
tokio/src/runtime/task/id.rs
@@ -16,7 +16,7 @@ use std::{fmt, num::NonZeroU64};
16
/// [`task::id()`](crate::task::id()) functions and from outside the task via
17
/// the [`JoinHandle::id()`](crate::task::JoinHandle::id()) function.
18
#[cfg_attr(docsrs, doc(cfg(all(feature = "rt"))))]
19
-#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq)]
+#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq, PartialOrd, Ord)]
20
pub struct Id(pub(crate) NonZeroU64);
21
22
/// Returns the [`Id`] of the currently running task.
0 commit comments