Skip to main contentModule process
Source - ProcessInfo
- Information about a single process.
- TreeNode
- A node in the process tree — wraps a
ProcessInfo with children and depth.
- SortField
- Fields by which a process list can be sorted.
- SortOrder
- Direction of a sort operation.
- build_process_tree
- Build a process tree from a flat list.
- filter_processes
- Returns a new
Vec containing every process whose name or command
contains pattern (case-insensitive). An empty pattern matches everything. - flatten_tree
- Flatten a tree into a depth-first ordered list of
(ProcessInfo, depth) pairs.
Useful for rendering the tree view in the TUI. - sort_processes
- Sorts
procs in-place by field in the given order.
Name and User comparisons are case-insensitive.