pub struct AppState {Show 19 fields
pub should_quit: bool,
pub loading_state: LoadingState,
pub loading_ui: LoadingUI,
pub source_panel: SourcePanelState,
pub ebpf_panel: EbpfPanelState,
pub command_panel: CommandPanelState,
pub command_renderer: OptimizedRenderer,
pub command_input_handler: OptimizedInputHandler,
pub ebpf_panel_handler: EbpfPanelHandler,
pub ebpf_panel_renderer: EbpfPanelRenderer,
pub ui: UIState,
pub command_panel_width: u16,
pub event_registry: EventRegistry,
pub route_file_info_to_file_search: bool,
pub target_pid: Option<u32>,
pub emoji_config: EmojiConfig,
pub expecting_second_ctrl_c: bool,
pub realtime_session_logger: RealtimeSessionLogger,
pub realtime_output_logger: RealtimeOutputLogger,
}Expand description
Root application state following TEA Model pattern
Fields§
§should_quit: bool§loading_state: LoadingState§loading_ui: LoadingUI§source_panel: SourcePanelState§ebpf_panel: EbpfPanelState§command_panel: CommandPanelState§command_renderer: OptimizedRenderer§command_input_handler: OptimizedInputHandler§ebpf_panel_handler: EbpfPanelHandler§ebpf_panel_renderer: EbpfPanelRenderer§ui: UIState§command_panel_width: u16§event_registry: EventRegistry§route_file_info_to_file_search: bool§target_pid: Option<u32>§emoji_config: EmojiConfig§expecting_second_ctrl_c: bool§realtime_session_logger: RealtimeSessionLogger§realtime_output_logger: RealtimeOutputLoggerImplementations§
Source§impl AppState
impl AppState
pub fn new(event_registry: EventRegistry, layout_mode: LayoutMode) -> Self
pub fn new_with_config( event_registry: EventRegistry, ui_config: UiConfig, ) -> Self
Sourcepub fn is_loading(&self) -> bool
pub fn is_loading(&self) -> bool
Check if application is still in loading phase
Sourcepub fn set_loading_state(&mut self, state: LoadingState)
pub fn set_loading_state(&mut self, state: LoadingState)
Update loading state
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppState
impl RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnwindSafe for AppState
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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