Struct tauri_api::process::Process [−]
pub struct Process { pub uid: u32, pub gid: u32, pub tasks: HashMap<i32, Process, RandomState>, // some fields omitted }
Expand description
Struct containing a process’ information.
Fields
uid: u32
User id of the process owner.
gid: u32
Group id of the process owner.
tasks: HashMap<i32, Process, RandomState>
Tasks run by this process.
Trait Implementations
impl ProcessExt for Process
impl ProcessExt for Process
pub fn status(&self) -> ProcessStatus
pub fn status(&self) -> ProcessStatus
Returns the status of the processus (idle, run, zombie, etc). None
means that
sysinfo
doesn’t have enough rights to get this information.
Create a new process only containing the given information. Read more
pub fn virtual_memory(&self) -> u64
pub fn virtual_memory(&self) -> u64
Returns the virtual memory usage (in KiB).
pub fn start_time(&self) -> u64
pub fn start_time(&self) -> u64
Returns the time of process launch (in seconds).
Auto Trait Implementations
impl RefUnwindSafe for Process
impl UnwindSafe for Process