pub struct ProcessInfo {
pub pid: u32,
pub name: String,
pub path: Option<PathBuf>,
pub cmdline: Option<String>,
pub user: Option<String>,
pub parent_pid: Option<u32>,
pub parent_name: Option<String>,
}Expand description
Information about the process that owns a network connection.
Fields like path, cmdline, parent_pid, and parent_name are
populated via a secondary ps call (macOS) or /proc (Linux)
and may be None if the process has exited or access is denied.
Fields§
§pid: u32Process ID.
name: StringShort process name (e.g. “nginx”).
path: Option<PathBuf>Full path to the executable, if available.
cmdline: Option<String>Full command line, if available.
user: Option<String>Username of the process owner.
parent_pid: Option<u32>Parent process ID.
parent_name: Option<String>Parent process name, resolved from parent_pid.
Trait Implementations§
Source§impl Clone for ProcessInfo
impl Clone for ProcessInfo
Source§fn clone(&self) -> ProcessInfo
fn clone(&self) -> ProcessInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessInfo
impl Debug for ProcessInfo
Auto Trait Implementations§
impl Freeze 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