pub struct RuntimeSnapshot {
pub workers_len: usize,
pub alive_tasks_len: usize,
pub global_queue_depth_len: usize,
pub total_busy: Duration,
}Expand description
Snapshot of stable runtime counters at one instant.
Fields§
§workers_len: usizeWorker threads configured on the runtime.
alive_tasks_len: usizeCurrently alive tasks.
global_queue_depth_len: usizeTasks pending in the global (injection) queue.
total_busy: DurationSum of per-worker busy time since runtime creation.
Trait Implementations§
Source§impl Clone for RuntimeSnapshot
impl Clone for RuntimeSnapshot
impl Copy for RuntimeSnapshot
Source§impl Debug for RuntimeSnapshot
impl Debug for RuntimeSnapshot
Source§impl Default for RuntimeSnapshot
impl Default for RuntimeSnapshot
impl Eq for RuntimeSnapshot
Source§impl PartialEq for RuntimeSnapshot
impl PartialEq for RuntimeSnapshot
impl StructuralPartialEq for RuntimeSnapshot
Auto Trait Implementations§
impl Freeze for RuntimeSnapshot
impl RefUnwindSafe for RuntimeSnapshot
impl Send for RuntimeSnapshot
impl Sync for RuntimeSnapshot
impl Unpin for RuntimeSnapshot
impl UnsafeUnpin for RuntimeSnapshot
impl UnwindSafe for RuntimeSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.