pub struct TaskMetrics {
pub success_count: u64,
pub error_count: u64,
pub processed_count: u64,
pub processing_rate: f64,
pub avg_processing_time_ms: f64,
pub custom: HashMap<String, f64>,
}Expand description
Optional metrics that tasks can expose
Fields§
§success_count: u64Number of successful operations
error_count: u64Number of failed operations
processed_count: u64Number of messages/items processed
processing_rate: f64Current processing rate (per second)
avg_processing_time_ms: f64Average processing time (milliseconds)
custom: HashMap<String, f64>Custom metrics (key-value pairs)
Implementations§
Source§impl TaskMetrics
impl TaskMetrics
Trait Implementations§
Source§impl Clone for TaskMetrics
impl Clone for TaskMetrics
Source§impl Debug for TaskMetrics
impl Debug 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