pub struct WorkerStats {
pub total_active: usize,
pub cpu_intensive_count: usize,
pub io_intensive_count: usize,
pub mixed_count: usize,
pub max_capacity: usize,
}Expand description
Statistics about the current state of the worker pool.
Provides insights into worker utilization and capacity across different worker types.
Fields§
§total_active: usizeTotal number of currently active workers
cpu_intensive_count: usizeNumber of active CPU-intensive workers
io_intensive_count: usizeNumber of active I/O-intensive workers
mixed_count: usizeNumber of active mixed-type workers
max_capacity: usizeMaximum number of workers allowed in the pool
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 moreAuto 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