pub struct TaskStats {
pub total: usize,
pub running: usize,
pub threads: usize,
}Expand description
Process-table counts, so meters can summarise processes without reaching into the table themselves.
htop prints Tasks: 472, 1664 thr, 1 running; these are those numbers.
Fields§
§total: usizeRows in the process table.
running: usizeProcesses in state R.
threads: usizeSum of NLWP across the table.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskStats
impl RefUnwindSafe for TaskStats
impl Send for TaskStats
impl Sync for TaskStats
impl Unpin for TaskStats
impl UnsafeUnpin for TaskStats
impl UnwindSafe for TaskStats
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<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