pub struct Process {
    pub pid: u32,
    pub pname: String,
}
Expand description

the process struct .

let p = Process::new(123,"yeah.exe");

Fields

pid: u32pname: String

Implementations

get the process struct pid . return u32

get the process struct pname . return String

get the process SID . return String

get the process User . return String

get the process threadsID . return Vec<u32>

get the process path . return String

get the process parrentID , return Option<u32>

get the process start time . return String

get process exit time . return String

get process cpu time infomation . return CpuTime struct

get process commandline params . return String

get process io counter . return a IoCounter struct

get process memory counter . return a MemoryCounter struct

get process handle counter

kill this process

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.