pub struct WorkerStats {
pub total_tasks: u64,
pub active_tasks: u32,
pub succeeded: u64,
pub failed: u64,
pub retried: u64,
pub uptime: f64,
pub loadavg: Option<[f64; 3]>,
pub memory_usage: Option<u64>,
pub pool: Option<PoolStats>,
pub broker: Option<BrokerStats>,
pub clock: Option<f64>,
}Expand description
Worker statistics
Fields§
§total_tasks: u64Total tasks processed
active_tasks: u32Tasks currently active
succeeded: u64Total successful tasks
failed: u64Total failed tasks
retried: u64Total retried tasks
uptime: f64Worker uptime in seconds
loadavg: Option<[f64; 3]>System load average (1, 5, 15 min)
memory_usage: Option<u64>Process memory usage in bytes
pool: Option<PoolStats>Pool information
broker: Option<BrokerStats>Broker connection stats
clock: Option<f64>Clock offset from server
Trait Implementations§
Source§impl Clone for WorkerStats
impl Clone for WorkerStats
Source§fn clone(&self) -> WorkerStats
fn clone(&self) -> WorkerStats
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkerStats
impl Debug for WorkerStats
Source§impl<'de> Deserialize<'de> for WorkerStats
impl<'de> Deserialize<'de> for WorkerStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WorkerStats
impl RefUnwindSafe for WorkerStats
impl Send for WorkerStats
impl Sync for WorkerStats
impl Unpin for WorkerStats
impl UnwindSafe for WorkerStats
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