pub struct ThreadPoolMetrics {
pub active_threads: usize,
pub queue_length: usize,
pub total_tasks: usize,
pub average_utilization: f64,
pub average_latency_ms: f64,
pub throughput_tasks_per_sec: f64,
}Expand description
Thread pool performance metrics
Fields§
§active_threads: usizeNumber of currently active threads
queue_length: usizeNumber of tasks waiting in queue
total_tasks: usizeTotal number of tasks processed
average_utilization: f64Average thread utilization (0.0 to 1.0+)
average_latency_ms: f64Average task latency in milliseconds
throughput_tasks_per_sec: f64Throughput in tasks per second
Trait Implementations§
Source§impl Clone for ThreadPoolMetrics
impl Clone for ThreadPoolMetrics
Source§fn clone(&self) -> ThreadPoolMetrics
fn clone(&self) -> ThreadPoolMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThreadPoolMetrics
impl RefUnwindSafe for ThreadPoolMetrics
impl Send for ThreadPoolMetrics
impl Sync for ThreadPoolMetrics
impl Unpin for ThreadPoolMetrics
impl UnsafeUnpin for ThreadPoolMetrics
impl UnwindSafe for ThreadPoolMetrics
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more