#[non_exhaustive]pub struct ProcessInfo {
pub id: u32,
pub parent_id: Option<u32>,
pub memory: ProcessMemory,
pub cpu_time: CpuTime,
pub threads: Option<usize>,
pub open_files: Option<usize>,
pub limits: Limits,
pub started_at: Option<SystemTime>,
pub user: Option<User>,
pub is_elevated: Option<bool>,
}Expand description
Everything about this process, in the fewest reads.
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.id: u32§parent_id: Option<u32>§memory: ProcessMemory§cpu_time: CpuTime§threads: Option<usize>threads, when read (Windows: only with with_threads).
open_files: Option<usize>open_files, when it could be read.
limits: Limits§started_at: Option<SystemTime>started_at, when it could be read.
user: Option<User>super::user, when it could be read.
is_elevated: Option<bool>super::is_elevated, when it could be read.
Trait Implementations§
Source§impl Clone for ProcessInfo
impl Clone for ProcessInfo
Auto Trait Implementations§
impl Forget for ProcessInfo
impl Freeze for ProcessInfo
impl Move for ProcessInfo
impl RefUnwindSafe for ProcessInfo
impl Send for ProcessInfo
impl Sync for ProcessInfo
impl Unpin for ProcessInfo
impl UnsafeUnpin for ProcessInfo
impl UnwindSafe for ProcessInfo
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