App

Struct App 

Source
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: String

header

§state: AppState§selected_tab: SelectedTab§parser: CDParser

parser

§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>>>§footer_text: HashMap<SelectedTab, String>§colors: CommonColors§show_help: bool

Implementations§

Source§

impl App<'_>

Source

pub fn new( filepath: String, colors: Option<CommonColors>, ) -> Result<Self, Error>

Source

pub fn sort_and_update_process_group_table(&mut self)

Source

pub fn sort_and_update_process_table(&mut self)

Source

pub fn tick(&self)

Handles the tick event of the terminal.

Source

pub fn quit(&mut self)

Set running to false to quit the application.

Source

pub fn next_tab(&mut self)

Source

pub fn prev_tab(&mut self)

Source

pub fn get_heap_info(&self, pid: &str) -> Result<Text<'_>>

Source

pub fn get_stack_info(&self, pid: &str) -> Result<Text<'_>>

Source

pub fn get_message_queue_info(&self, pid: &str) -> Result<Text<'_>>

Source§

impl App<'_>

Source

pub fn render_tabs(&self, area: Rect, buf: &mut Buffer)

Source

pub fn get_selected_pid(&self) -> String

Trait Implementations§

Source§

impl Default for App<'_>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Widget for &mut App<'_>

Source§

fn render(self, area: Rect, buf: &mut Buffer)

Draws the current state of the widget in the given buffer. That is the only method required to implement a custom widget.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.