pub struct App { /* private fields */ }Expand description
Modern TUI application using TEA architecture
Implementations§
Source§impl App
impl App
Sourcepub async fn new(
event_registry: EventRegistry,
layout_mode: LayoutMode,
) -> Result<Self>
pub async fn new( event_registry: EventRegistry, layout_mode: LayoutMode, ) -> Result<Self>
Create a new application instance
Sourcepub async fn new_with_config(
event_registry: EventRegistry,
ui_config: UiConfig,
) -> Result<Self>
pub async fn new_with_config( event_registry: EventRegistry, ui_config: UiConfig, ) -> Result<Self>
Create a new application instance with full UI configuration
Sourcepub fn add_module_to_loading(&mut self, module_path: String)
pub fn add_module_to_loading(&mut self, module_path: String)
Add a module to the loading progress tracking
Sourcepub fn start_module_loading(&mut self, module_path: &str)
pub fn start_module_loading(&mut self, module_path: &str)
Start loading a specific module
Sourcepub fn complete_module_loading(
&mut self,
module_path: &str,
functions: usize,
variables: usize,
types: usize,
)
pub fn complete_module_loading( &mut self, module_path: &str, functions: usize, variables: usize, types: usize, )
Complete loading of a module with stats
Sourcepub fn fail_module_loading(&mut self, module_path: &str, error: String)
pub fn fail_module_loading(&mut self, module_path: &str, error: String)
Fail loading of a module
Sourcepub fn set_target_pid(&mut self, pid: u32)
pub fn set_target_pid(&mut self, pid: u32)
Set target PID for display
Sourcepub fn transition_to_ready_with_completion(&mut self)
pub fn transition_to_ready_with_completion(&mut self)
Transition to ready state with completion summary (after successful loading)
Sourcepub fn add_loading_completion_summary(&mut self)
pub fn add_loading_completion_summary(&mut self)
Generate and add completion summary to command panel
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
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