pub struct PsTreeEntry {
pub process: ProcessInfo,
pub depth: u32,
}Expand description
A process tree entry with depth annotation for display.
Used by crate::process::build_pstree to produce a flat, depth-annotated
list from a process list, suitable for rendering as an indented tree.
Fields§
§process: ProcessInfoThe process information.
depth: u32Tree depth (0 = root, 1 = child of root, etc.).
Trait Implementations§
Source§impl Clone for PsTreeEntry
impl Clone for PsTreeEntry
Source§fn clone(&self) -> PsTreeEntry
fn clone(&self) -> PsTreeEntry
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 moreAuto Trait Implementations§
impl Freeze for PsTreeEntry
impl RefUnwindSafe for PsTreeEntry
impl Send for PsTreeEntry
impl Sync for PsTreeEntry
impl Unpin for PsTreeEntry
impl UnsafeUnpin for PsTreeEntry
impl UnwindSafe for PsTreeEntry
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