pub struct ProcessTreeNode {
pub pid: u32,
pub cmd: String,
pub children: Vec<ProcessTreeNode>,
}Expand description
Process tree node structure
Fields§
§pid: u32§cmd: String§children: Vec<ProcessTreeNode>Implementations§
Source§impl ProcessTreeNode
impl ProcessTreeNode
Sourcepub fn format_tree(&self, prefix: &str, is_last: bool) -> String
pub fn format_tree(&self, prefix: &str, is_last: bool) -> String
Format tree as string with indentation
Trait Implementations§
Source§impl Clone for ProcessTreeNode
impl Clone for ProcessTreeNode
Source§fn clone(&self) -> ProcessTreeNode
fn clone(&self) -> ProcessTreeNode
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 moreAuto Trait Implementations§
impl Freeze for ProcessTreeNode
impl RefUnwindSafe for ProcessTreeNode
impl Send for ProcessTreeNode
impl Sync for ProcessTreeNode
impl Unpin for ProcessTreeNode
impl UnsafeUnpin for ProcessTreeNode
impl UnwindSafe for ProcessTreeNode
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