#[non_exhaustive]pub struct Processes {
pub total: u64,
pub threads: Option<u64>,
pub running: Option<u64>,
}Expand description
How many processes and threads the machine runs. Totals only: no process is listed or inspected.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.total: u64Processes. Inside a container, the container’s process namespace.
threads: Option<u64>Threads, when reported.
running: Option<u64>Runnable right now, when reported (Linux).
Trait Implementations§
impl Copy for Processes
impl Eq for Processes
impl StructuralPartialEq for Processes
Auto Trait Implementations§
impl Freeze for Processes
impl RefUnwindSafe for Processes
impl Send for Processes
impl Sync for Processes
impl Unpin for Processes
impl UnsafeUnpin for Processes
impl UnwindSafe for Processes
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