pub struct TaskMetrics {
pub identifier: TaskIdentifier,
pub generation: u64,
pub name: String,
pub spawner: SpawnerIdentifier,
pub executor: Option<usize>,
pub polls: u64,
pub busy_nanoseconds: u64,
pub longest_poll_nanoseconds: u64,
}Expand description
Cumulative counters of one registered task.
Fields§
§identifier: TaskIdentifier§generation: u64Distinguishes registrations that reuse the same identifier.
name: String§spawner: SpawnerIdentifierSpawner registration running the task; usize::MAX for adopted tasks.
executor: Option<usize>Executor running the task, as in ExecutorMetrics::executor;
None for adopted tasks.
polls: u64§busy_nanoseconds: u64Wall-clock time spent in completed polls.
longest_poll_nanoseconds: u64Trait Implementations§
Source§impl Clone for TaskMetrics
impl Clone for TaskMetrics
Source§fn clone(&self) -> TaskMetrics
fn clone(&self) -> TaskMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TaskMetrics
impl Debug for TaskMetrics
Source§impl PartialEq for TaskMetrics
impl PartialEq for TaskMetrics
Source§fn eq(&self, other: &TaskMetrics) -> bool
fn eq(&self, other: &TaskMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TaskMetrics
impl StructuralPartialEq for TaskMetrics
Auto Trait Implementations§
impl Freeze for TaskMetrics
impl RefUnwindSafe for TaskMetrics
impl Send for TaskMetrics
impl Sync for TaskMetrics
impl Unpin for TaskMetrics
impl UnsafeUnpin for TaskMetrics
impl UnwindSafe for TaskMetrics
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