pub struct TuiConfig {
pub hidden_panels: Vec<OverviewSection>,
pub show_widgets: bool,
pub sort: SortKey,
pub sort_descending: Option<bool>,
pub tree: bool,
pub kernel_threads: bool,
pub containers: bool,
}Expand description
Settings of the terminal UI.
Fields§
Boxes of the host view not to draw (v toggles them and saves the
choice here). The CPU box is always drawn.
show_widgets: boolWhether the widget column is shown (w, or v then w).
sort: SortKeyThe process table’s sort column (← →, a click on a header).
sort_descending: Option<bool>Its order (r); when left out, the column’s natural one (largest
first, names A to Z).
tree: boolThe process tree (e).
kernel_threads: boolKernel threads in the process table (t).
containers: boolThe per-container summary (C).
Implementations§
Source§impl TuiConfig
impl TuiConfig
Sourcepub fn process_view(&self) -> ProcessView
pub fn process_view(&self) -> ProcessView
The process table’s settings.
Sourcepub fn set_process_view(&mut self, view: ProcessView)
pub fn set_process_view(&mut self, view: ProcessView)
Keeps view; the order only when it is not the column’s natural
one, so the file stays short.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TuiConfig
impl<'de> Deserialize<'de> for TuiConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TuiConfig
Auto Trait Implementations§
impl Forget for TuiConfig
impl Freeze for TuiConfig
impl RefUnwindSafe for TuiConfig
impl Send for TuiConfig
impl Sync for TuiConfig
impl Unpin for TuiConfig
impl UnsafeUnpin for TuiConfig
impl UnwindSafe for TuiConfig
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