pub(crate) struct SpawnerMetrics {
num_threads: MetricAtomicUsize,
num_idle_threads: MetricAtomicUsize,
queue_depth: MetricAtomicUsize,
}Fields§
§num_threads: MetricAtomicUsize§num_idle_threads: MetricAtomicUsize§queue_depth: MetricAtomicUsizeImplementations§
Source§impl SpawnerMetrics
impl SpawnerMetrics
pub(super) fn num_threads(&self) -> usize
pub(super) fn num_idle_threads(&self) -> usize
fn inc_num_threads(&self)
pub(super) fn dec_num_threads(&self)
pub(super) fn inc_num_idle_threads(&self)
pub(super) fn dec_num_idle_threads(&self) -> usize
pub(super) fn inc_queue_depth(&self)
pub(super) 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 UnsafeUnpin 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