pub struct TaskExecutionStats {
pub total: usize,
pub submitted: usize,
pub running: usize,
pub succeeded: usize,
pub failed: usize,
pub panicked: usize,
pub cancelled: usize,
}Expand description
Count snapshot for a TaskExecutionService.
Counters are derived from the service registry and therefore include terminal task records retained for inspection.
Fields§
§total: usizeNumber of tasks accepted by the service.
submitted: usizeNumber of accepted tasks not yet started.
running: usizeNumber of tasks currently running.
succeeded: usizeNumber of tasks that completed successfully.
failed: usizeNumber of tasks that returned an error.
panicked: usizeNumber of tasks that panicked.
cancelled: usizeNumber of tasks cancelled before start.
Trait Implementations§
Source§impl Clone for TaskExecutionStats
impl Clone for TaskExecutionStats
Source§fn clone(&self) -> TaskExecutionStats
fn clone(&self) -> TaskExecutionStats
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 TaskExecutionStats
impl Debug for TaskExecutionStats
Source§impl Default for TaskExecutionStats
impl Default for TaskExecutionStats
Source§fn default() -> TaskExecutionStats
fn default() -> TaskExecutionStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for TaskExecutionStats
impl PartialEq for TaskExecutionStats
Source§fn eq(&self, other: &TaskExecutionStats) -> bool
fn eq(&self, other: &TaskExecutionStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TaskExecutionStats
impl Eq for TaskExecutionStats
impl StructuralPartialEq for TaskExecutionStats
Auto Trait Implementations§
impl Freeze for TaskExecutionStats
impl RefUnwindSafe for TaskExecutionStats
impl Send for TaskExecutionStats
impl Sync for TaskExecutionStats
impl Unpin for TaskExecutionStats
impl UnsafeUnpin for TaskExecutionStats
impl UnwindSafe for TaskExecutionStats
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