#[non_exhaustive]pub struct DecoderPoolStats {
pub configured_workers: usize,
pub worker_limit: usize,
pub busy_workers: usize,
pub active_workers: usize,
pub spawned_workers: usize,
pub auxiliary_threads: usize,
pub queued_tasks: usize,
pub attached_decoders: usize,
pub runnable_decoders: usize,
pub waiting_decoders: usize,
}Expand description
Approximate process-wide snapshot of a DecoderPool.
Fields are sampled independently. The member list is held briefly while
aggregate queue depth is summed, but the snapshot is not a transactionally
consistent view of a single instant. Counts describe current state, not
lifetime maxima. In particular, spawned_workers can exceed worker_limit
while threads retire after a decrease, and busy_workers can temporarily
exceed a newly lowered limit while already-admitted tasks finish.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.configured_workers: usizeImmutable maximum number of simultaneous decode execution slots.
worker_limit: usizeCurrent application-controlled pool ceiling.
busy_workers: usizeDecode tasks currently holding a pool execution slot.
active_workers: usizeWorker allowances currently distributed across attached decoders.
An allowance permits a decoder to keep a worker representative; it is
not an occupied execution slot. Compare with Self::busy_workers.
spawned_workers: usizeLive decoder-worker operating-system threads attached to the pool.
auxiliary_threads: usizeLive coordinator and scanner threads attached to the pool.
queued_tasks: usizeApproximate runnable tasks across attached decoders.
attached_decoders: usizeLive decoder operations attached to the pool.
runnable_decoders: usizeAttached decoders with queued, executing, or pool-waiting work.
waiting_decoders: usizeAttached decoders with at least one task waiting for a pool slot.