[][src]Struct bottom::app::App

pub struct App {
    pub dd_err: Option<String>,
    pub is_frozen: bool,
    pub canvas_data: DisplayableData,
    pub data_collection: DataCollection,
    pub delete_dialog_state: AppDeleteDialogState,
    pub help_dialog_state: AppHelpDialogState,
    pub is_expanded: bool,
    pub is_force_redraw: bool,
    pub basic_mode_use_percent: bool,
    pub cpu_state: CpuState,
    pub mem_state: MemState,
    pub net_state: NetState,
    pub proc_state: ProcState,
    pub temp_state: TempState,
    pub disk_state: DiskState,
    pub battery_state: BatteryState,
    pub basic_table_widget_state: Option<BasicTableWidgetState>,
    pub app_config_fields: AppConfigFields,
    pub widget_map: HashMap<u64, BottomWidget>,
    pub current_widget: BottomWidget,
    pub used_widgets: UsedWidgets,
    // some fields omitted
}

Fields

dd_err: Option<String>is_frozen: boolcanvas_data: DisplayableDatadata_collection: DataCollectiondelete_dialog_state: AppDeleteDialogStatehelp_dialog_state: AppHelpDialogStateis_expanded: boolis_force_redraw: boolbasic_mode_use_percent: boolcpu_state: CpuStatemem_state: MemStatenet_state: NetStateproc_state: ProcStatetemp_state: TempStatedisk_state: DiskStatebattery_state: BatteryStatebasic_table_widget_state: Option<BasicTableWidgetState>app_config_fields: AppConfigFieldswidget_map: HashMap<u64, BottomWidget>current_widget: BottomWidgetused_widgets: UsedWidgets

Implementations

impl App[src]

pub fn builder() -> AppBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>[src]

Create a builder for building App. On the builder, call .cpu_state(...), .mem_state(...), .net_state(...), .proc_state(...), .temp_state(...), .disk_state(...), .battery_state(...), .basic_table_widget_state(...), .app_config_fields(...), .widget_map(...), .current_widget(...), .used_widgets(...) to set the values of the fields (they accept Into values). Finally, call .build() to create the instance of App.

impl App[src]

pub fn reset(&mut self)[src]

pub fn on_esc(&mut self)[src]

pub fn is_in_search_widget(&self) -> bool[src]

pub fn on_tab(&mut self)[src]

pub fn is_grouped(&self, widget_id: u64) -> bool[src]

I don't like this, but removing it causes a bunch of breakage. Use proc_widget_state.is_grouped if possible!

pub fn on_space(&mut self)[src]

"On space" if we don't want to treat is as a character.

pub fn on_slash(&mut self)[src]

pub fn toggle_sort(&mut self)[src]

pub fn invert_sort(&mut self)[src]

pub fn toggle_percentages(&mut self)[src]

pub fn toggle_ignore_case(&mut self)[src]

pub fn toggle_search_whole_word(&mut self)[src]

pub fn toggle_search_regex(&mut self)[src]

pub fn on_enter(&mut self)[src]

One of two functions allowed to run while in a dialog...

pub fn on_delete(&mut self)[src]

pub fn on_backspace(&mut self)[src]

pub fn get_process_filter(&self, widget_id: u64) -> &Option<Query>[src]

pub fn on_up_key(&mut self)[src]

pub fn on_down_key(&mut self)[src]

pub fn on_left_key(&mut self)[src]

pub fn on_right_key(&mut self)[src]

pub fn skip_cursor_beginning(&mut self)[src]

pub fn skip_cursor_end(&mut self)[src]

pub fn start_dd(&mut self)[src]

pub fn on_char_key(&mut self, caught_char: char)[src]

pub fn kill_highlighted_process(&mut self) -> Result<()>[src]

pub fn get_to_delete_processes(&self) -> Option<(String, Vec<u32>)>[src]

pub fn move_widget_selection(&mut self, direction: &WidgetDirection)[src]

pub fn skip_to_first(&mut self)[src]

pub fn skip_to_last(&mut self)[src]

pub fn decrement_position_count(&mut self)[src]

pub fn increment_position_count(&mut self)[src]

pub fn handle_scroll_up(&mut self)[src]

pub fn handle_scroll_down(&mut self)[src]

Auto Trait Implementations

impl !RefUnwindSafe for App

impl Send for App

impl Sync for App

impl Unpin for App

impl UnwindSafe for App

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.