pub struct ProcInfo {
pub name: String,
pub cmd: Vec<String>,
pub exe: Option<PathBuf>,
pub pid: Pid,
pub parent: Option<Pid>,
pub env: Vec<String>,
pub cwd: Option<PathBuf>,
}Expand description
Information about a process
Fields§
§name: StringThe name
cmd: Vec<String>The command used to launch the process
exe: Option<PathBuf>The path to the executable the process is running
pid: PidThe process ID
parent: Option<Pid>Parent process ID if relevant
env: Vec<String>Environment variables available to the process
cwd: Option<PathBuf>The current working directory of the process
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcInfo
impl RefUnwindSafe for ProcInfo
impl Send for ProcInfo
impl Sync for ProcInfo
impl Unpin for ProcInfo
impl UnwindSafe for ProcInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more