pub struct App<'a> {Show 24 fields
pub header: String,
pub state: AppState,
pub selected_tab: SelectedTab,
pub parser: CDParser,
pub filepath: String,
pub crash_dump: CrashDump,
pub index_map: IndexMap,
pub ancestor_map: HashMap<String, Vec<String>>,
pub tab_lists: HashMap<SelectedTab, Vec<String>>,
pub tab_rows: HashMap<SelectedTab, Vec<Row<'a>>>,
pub inspecting_pid: String,
pub inspect_scroll_state: ScrollViewState,
pub table_states: HashMap<SelectedTab, TableState>,
pub process_group_table: Table<'a>,
pub process_group_sort_column: ProcessGroupSortColumn,
pub process_group_sort_direction: SortDirection,
pub process_view_table: Table<'a>,
pub process_view_state: ProcessViewState,
pub process_sort_column: ProcessSortColumn,
pub process_sort_direction: SortDirection,
pub process_readonly_view: Option<ReadOnlyView<String, InfoOrIndex<ProcInfo>>>,
pub footer_text: HashMap<SelectedTab, String>,
pub colors: CommonColors,
pub show_help: bool,
}Expand description
Application.
Fields§
§header: Stringheader
state: AppState§selected_tab: SelectedTab§parser: CDParserparser
filepath: String§crash_dump: CrashDump§index_map: IndexMap§ancestor_map: HashMap<String, Vec<String>>§tab_lists: HashMap<SelectedTab, Vec<String>>process information list
tab_rows: HashMap<SelectedTab, Vec<Row<'a>>>§inspecting_pid: String§inspect_scroll_state: ScrollViewState§table_states: HashMap<SelectedTab, TableState>§process_group_table: Table<'a>§process_group_sort_column: ProcessGroupSortColumn§process_group_sort_direction: SortDirection§process_view_table: Table<'a>§process_view_state: ProcessViewState§process_sort_column: ProcessSortColumn§process_sort_direction: SortDirection§process_readonly_view: Option<ReadOnlyView<String, InfoOrIndex<ProcInfo>>>§colors: CommonColors§show_help: boolImplementations§
Source§impl App<'_>
impl App<'_>
pub fn new( filepath: String, colors: Option<CommonColors>, ) -> Result<Self, Error>
pub fn sort_and_update_process_group_table(&mut self)
pub fn sort_and_update_process_table(&mut self)
pub fn next_tab(&mut self)
pub fn prev_tab(&mut self)
pub fn get_heap_info(&self, pid: &str) -> Result<Text<'_>>
pub fn get_stack_info(&self, pid: &str) -> Result<Text<'_>>
pub fn get_message_queue_info(&self, pid: &str) -> Result<Text<'_>>
Source§impl App<'_>
impl App<'_>
pub fn render_tabs(&self, area: Rect, buf: &mut Buffer)
pub fn get_selected_pid(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for App<'a>
impl<'a> !RefUnwindSafe for App<'a>
impl<'a> Send for App<'a>
impl<'a> Sync for App<'a>
impl<'a> Unpin for App<'a>
impl<'a> UnwindSafe for App<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more