pub struct AsyncPoolMetrics<'a> { /* private fields */ }
Expand description
Metrics for the asynchronous pool.
Implementations§
Source§impl AsyncPoolMetrics<'_>
impl AsyncPoolMetrics<'_>
Sourcepub fn queue_size(&self) -> u64
pub fn queue_size(&self) -> u64
Returns the amount of tasks in the pool’s queue.
Sourcepub fn finished_tasks(&self) -> u64
pub fn finished_tasks(&self) -> u64
Returns the total number of finished tasks since the last poll.
Sourcepub fn utilization(&self) -> f32
pub fn utilization(&self) -> f32
Returns the utilization metric for the pool.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AsyncPoolMetrics<'a>
impl<'a> RefUnwindSafe for AsyncPoolMetrics<'a>
impl<'a> Send for AsyncPoolMetrics<'a>
impl<'a> Sync for AsyncPoolMetrics<'a>
impl<'a> Unpin for AsyncPoolMetrics<'a>
impl<'a> UnwindSafe for AsyncPoolMetrics<'a>
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