pub(crate) struct SpawnerMetrics {
num_threads: MetricAtomicUsize,
num_idle_threads: MetricAtomicUsize,
queue_depth: MetricAtomicUsize,
}
Fields§
§num_threads: MetricAtomicUsize
§num_idle_threads: MetricAtomicUsize
§queue_depth: MetricAtomicUsize
Implementations§
source§impl SpawnerMetrics
impl SpawnerMetrics
fn num_threads(&self) -> usize
fn num_idle_threads(&self) -> usize
fn inc_num_threads(&self)
fn dec_num_threads(&self)
fn inc_num_idle_threads(&self)
fn dec_num_idle_threads(&self) -> usize
fn inc_queue_depth(&self)
fn dec_queue_depth(&self)
Trait Implementations§
source§impl Default for SpawnerMetrics
impl Default for SpawnerMetrics
source§fn default() -> SpawnerMetrics
fn default() -> SpawnerMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for SpawnerMetrics
impl RefUnwindSafe for SpawnerMetrics
impl Send for SpawnerMetrics
impl Sync for SpawnerMetrics
impl Unpin for SpawnerMetrics
impl UnwindSafe for SpawnerMetrics
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