pub struct App {Show 26 fields
pub log_analyzer: Box<Arc<dyn LogAnalyzer>>,
pub color: Color,
pub selected_module: Module,
pub show_source_popup: bool,
pub show_filter_popup: bool,
pub show_error_message: bool,
pub show_navigation_popup: bool,
pub show_log_options_popup: bool,
pub input_buffers: Vec<Input>,
pub input_buffer_index: usize,
pub formats: StatefulList<String>,
pub source_type: usize,
pub filter_type: usize,
pub filter_color: usize,
pub sources: StatefulTable<(bool, String, Option<String>)>,
pub filters: StatefulTable<(bool, String)>,
pub log_lines: LazyStatefulTable<LogLine>,
pub search_lines: LazyStatefulTable<LogLineStyled>,
pub horizontal_offset: usize,
pub side_main_size_percentage: u16,
pub log_filter_size_percentage: u16,
pub log_search_size_percentage: u16,
pub log_columns: Vec<(String, bool)>,
pub auto_scroll: bool,
pub popup: PopupInteraction,
pub processing: Processing,
/* private fields */
}Expand description
This struct holds the current state of the app. In particular, it has the items field which is a wrapper
around ListState. Keeping track of the items state let us render the associated widget with its state
and have access to features such as natural scrolling.
Fields§
§log_analyzer: Box<Arc<dyn LogAnalyzer>>Api to the backend processor
color: ColorPrimary color
selected_module: ModuleCurrently selected module. Used to manage inputs and highlight focus
show_source_popup: boolDisplay the new source popup
show_filter_popup: boolDisplay the new filter popup
show_error_message: boolDisplay an error message
Display the navigation popup
show_log_options_popup: boolDisplay the navigation popup
input_buffers: Vec<Input>Vector of user input. Entries are uniquely assigned to each UI input, and the selection is
performed with the input_buffer_index
input_buffer_index: usizeCurrently selected input buffer
formats: StatefulList<String>Stateful list of all the current formats to be displayed in the source popup
source_type: usizeTab selector index for Source Type
filter_type: usizeTab selector index for Filter Type
filter_color: usizeTab selector index for Filter Type
sources: StatefulTable<(bool, String, Option<String>)>§filters: StatefulTable<(bool, String)>§log_lines: LazyStatefulTable<LogLine>Lazy widget for the main view of the logs
search_lines: LazyStatefulTable<LogLineStyled>Lazy widget for the main view of the search
horizontal_offset: usizeApply an offset to the logs to simulate horizontal scrolling
side_main_size_percentage: u16Resizing of the side_menu to the main view
log_filter_size_percentage: u16Resizing on the side_menu between sources and filters
log_search_size_percentage: u16Resizing on the main view between logs and searchs
log_columns: Vec<(String, bool)>Active log columns to display in the log and the search
auto_scroll: boolAuto scroll to the last receive elements. Used for live logs
popup: PopupInteractionManage the popup interaction
processing: ProcessingManage the processing popup