pub struct ExecutorMetrics {
pub submitted_tasks: u64,
pub completed_tasks: u64,
pub rejected_tasks: u64,
pub panicked_tasks: u64,
pub queue_depth: usize,
pub workers: usize,
}Expand description
Immutable snapshot of worker executor counters.
Fields§
§submitted_tasks: u64Number of tasks accepted into the executor queue.
completed_tasks: u64Number of tasks completed by workers, including panicked tasks.
rejected_tasks: u64Number of tasks rejected by the executor.
panicked_tasks: u64Number of tasks that panicked while running.
queue_depth: usizeCurrent number of accepted tasks not yet completed.
workers: usizeNumber of configured worker threads.
Trait Implementations§
Source§impl Clone for ExecutorMetrics
impl Clone for ExecutorMetrics
Source§fn clone(&self) -> ExecutorMetrics
fn clone(&self) -> ExecutorMetrics
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 moreimpl Copy for ExecutorMetrics
Source§impl Debug for ExecutorMetrics
impl Debug for ExecutorMetrics
Source§impl Default for ExecutorMetrics
impl Default for ExecutorMetrics
Source§fn default() -> ExecutorMetrics
fn default() -> ExecutorMetrics
Returns the “default value” for a type. Read more
impl Eq for ExecutorMetrics
Source§impl PartialEq for ExecutorMetrics
impl PartialEq for ExecutorMetrics
Source§fn eq(&self, other: &ExecutorMetrics) -> bool
fn eq(&self, other: &ExecutorMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExecutorMetrics
Auto Trait Implementations§
impl Freeze for ExecutorMetrics
impl RefUnwindSafe for ExecutorMetrics
impl Send for ExecutorMetrics
impl Sync for ExecutorMetrics
impl Unpin for ExecutorMetrics
impl UnsafeUnpin for ExecutorMetrics
impl UnwindSafe for ExecutorMetrics
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