pub struct WorkerPoolStatistics {
pub total_workers: usize,
pub status_counts: HashMap<WorkerStatus, usize>,
pub total_capacity: WorkerCapacity,
pub total_usage: WorkerUsage,
pub cpu_workers: usize,
pub gpu_workers: usize,
pub storage_workers: usize,
}Expand description
Worker pool statistics.
Fields§
§total_workers: usizeTotal number of workers
status_counts: HashMap<WorkerStatus, usize>Worker counts by status
total_capacity: WorkerCapacityTotal capacity across all workers
total_usage: WorkerUsageTotal usage across all workers
cpu_workers: usizeNumber of CPU workers
gpu_workers: usizeNumber of GPU workers
storage_workers: usizeNumber of storage workers
Trait Implementations§
Source§impl Clone for WorkerPoolStatistics
impl Clone for WorkerPoolStatistics
Source§fn clone(&self) -> WorkerPoolStatistics
fn clone(&self) -> WorkerPoolStatistics
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 WorkerPoolStatistics
impl Debug for WorkerPoolStatistics
Source§impl<'de> Deserialize<'de> for WorkerPoolStatistics
impl<'de> Deserialize<'de> for WorkerPoolStatistics
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 WorkerPoolStatistics
impl RefUnwindSafe for WorkerPoolStatistics
impl Send for WorkerPoolStatistics
impl Sync for WorkerPoolStatistics
impl Unpin for WorkerPoolStatistics
impl UnsafeUnpin for WorkerPoolStatistics
impl UnwindSafe for WorkerPoolStatistics
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