pub struct ProcessLink {
pub pid: u32,
pub cmd: String,
pub user: String,
}Expand description
A single entry in a process ancestry chain.
Displayed as "pid|cmd|user" by the Display impl.
use proc_tree::ProcessLink;
let link = ProcessLink { pid: 102, cmd: "touch".into(), user: "root".into() };
assert_eq!(link.to_string(), "102|touch|root");A chain is a Vec<ProcessLink> ordered from child to ancestor.
Fields§
§pid: u32§cmd: String§user: StringTrait Implementations§
Source§impl Clone for ProcessLink
impl Clone for ProcessLink
Source§fn clone(&self) -> ProcessLink
fn clone(&self) -> ProcessLink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProcessLink
impl Debug for ProcessLink
Auto Trait Implementations§
impl Freeze for ProcessLink
impl RefUnwindSafe for ProcessLink
impl Send for ProcessLink
impl Sync for ProcessLink
impl Unpin for ProcessLink
impl UnsafeUnpin for ProcessLink
impl UnwindSafe for ProcessLink
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