Struct tauri::api::process::Process [−]
pub struct Process { pub uid: u32, pub gid: u32, pub tasks: HashMap<i32, Process, RandomState>, // some fields omitted }
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 new(pid: i32, parent: Option<i32>, start_time: u64) -> Process
pub fn kill(&self, signal: Signal) -> bool
pub fn name(&self) -> &str
pub fn cmd(&self) -> &[String]
pub fn exe(&self) -> &Path
pub fn pid(&self) -> i32
pub fn environ(&self) -> &[String]
pub fn cwd(&self) -> &Path
pub fn root(&self) -> &Path
pub fn memory(&self) -> u64
pub fn virtual_memory(&self) -> u64
pub fn parent(&self) -> Option<i32>
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.
pub fn start_time(&self) -> u64
pub fn cpu_usage(&self) -> f32
pub fn disk_usage(&self) -> DiskUsage
Auto Trait Implementations
impl RefUnwindSafe for Process
impl RefUnwindSafe for Process
impl UnwindSafe for Process
impl UnwindSafe for Process
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,