pub struct App {Show 30 fields
pub daemons: Vec<Daemon>,
pub disabled: Vec<String>,
pub selected: usize,
pub view: View,
pub prev_view: View,
pub log_content: Vec<String>,
pub log_daemon_id: Option<String>,
pub log_scroll: usize,
pub log_follow: bool,
pub message: Option<String>,
pub message_time: Option<Instant>,
pub process_stats: HashMap<u32, ProcessStats>,
pub stats_history: HashMap<String, StatsHistory>,
pub pending_action: Option<PendingAction>,
pub loading_text: Option<String>,
pub search_query: String,
pub search_active: bool,
pub sort_column: SortColumn,
pub sort_order: SortOrder,
pub log_search_query: String,
pub log_search_active: bool,
pub log_search_matches: Vec<usize>,
pub log_search_current: usize,
pub details_daemon_id: Option<String>,
pub logs_expanded: bool,
pub multi_select: HashSet<String>,
pub config_daemon_ids: HashSet<String>,
pub show_available: bool,
pub editor_state: Option<EditorState>,
pub file_selector: Option<ConfigFileSelector>,
}Fields§
§daemons: Vec<Daemon>§disabled: Vec<String>§selected: usize§view: View§prev_view: View§log_content: Vec<String>§log_daemon_id: Option<String>§log_scroll: usize§log_follow: bool§message: Option<String>§message_time: Option<Instant>§process_stats: HashMap<u32, ProcessStats>§stats_history: HashMap<String, StatsHistory>§pending_action: Option<PendingAction>§loading_text: Option<String>§search_query: String§search_active: bool§sort_column: SortColumn§sort_order: SortOrder§log_search_query: String§log_search_active: bool§log_search_matches: Vec<usize>§log_search_current: usize§details_daemon_id: Option<String>§logs_expanded: bool§multi_select: HashSet<String>§config_daemon_ids: HashSet<String>§show_available: bool§editor_state: Option<EditorState>§file_selector: Option<ConfigFileSelector>Implementations§
Source§impl App
impl App
pub fn new() -> Self
pub fn confirm_action(&mut self, action: PendingAction)
pub fn cancel_confirm(&mut self)
pub fn take_pending_action(&mut self) -> Option<PendingAction>
pub fn start_loading(&mut self, text: impl Into<String>)
pub fn stop_loading(&mut self)
pub fn start_search(&mut self)
pub fn end_search(&mut self)
pub fn clear_search(&mut self)
pub fn search_push(&mut self, c: char)
pub fn search_pop(&mut self)
pub fn filtered_daemons(&self) -> Vec<&Daemon>
pub fn cycle_sort(&mut self)
pub fn toggle_sort_order(&mut self)
pub fn selected_daemon(&self) -> Option<&Daemon>
pub fn select_next(&mut self)
pub fn select_prev(&mut self)
pub fn toggle_log_follow(&mut self)
pub fn toggle_logs_expanded(&mut self)
pub fn toggle_select(&mut self)
pub fn select_all_visible(&mut self)
pub fn clear_selection(&mut self)
pub fn is_selected(&self, daemon_id: &str) -> bool
pub fn has_selection(&self) -> bool
pub fn selected_daemon_ids(&self) -> Vec<String>
pub fn set_message(&mut self, msg: impl Into<String>)
pub fn clear_stale_message(&mut self)
pub fn get_stats(&self, pid: u32) -> Option<&ProcessStats>
Sourcepub fn get_stats_history(&self, daemon_id: &str) -> Option<&StatsHistory>
pub fn get_stats_history(&self, daemon_id: &str) -> Option<&StatsHistory>
Get stats history for a daemon
pub async fn refresh(&mut self, client: &Arc<IpcClient>) -> Result<()>
Sourcepub fn is_config_only(&self, daemon_id: &str) -> bool
pub fn is_config_only(&self, daemon_id: &str) -> bool
Check if a daemon is from config only (not currently active)
Sourcepub fn toggle_show_available(&mut self)
pub fn toggle_show_available(&mut self)
Toggle showing available daemons from config
pub fn scroll_logs_down(&mut self)
pub fn scroll_logs_up(&mut self)
Sourcepub fn scroll_logs_page_down(&mut self, visible_lines: usize)
pub fn scroll_logs_page_down(&mut self, visible_lines: usize)
Scroll down by half page (Ctrl+D)
Sourcepub fn scroll_logs_page_up(&mut self, visible_lines: usize)
pub fn scroll_logs_page_up(&mut self, visible_lines: usize)
Scroll up by half page (Ctrl+U)
pub fn start_log_search(&mut self)
pub fn end_log_search(&mut self)
pub fn clear_log_search(&mut self)
pub fn log_search_push(&mut self, c: char)
pub fn log_search_pop(&mut self)
pub fn log_search_next(&mut self)
pub fn log_search_prev(&mut self)
pub fn show_details(&mut self, daemon_id: &str)
pub fn hide_details(&mut self)
Sourcepub fn view_daemon_details(&mut self, daemon_id: &str)
pub fn view_daemon_details(&mut self, daemon_id: &str)
View daemon details (charts + logs)
pub fn show_help(&mut self)
pub fn back_to_dashboard(&mut self)
Sourcepub fn stats(&self) -> (usize, usize, usize, usize, usize)
pub fn stats(&self) -> (usize, usize, usize, usize, usize)
Returns (total, running, stopped, errored, available)
pub fn is_disabled(&self, daemon_id: &str) -> bool
Sourcepub fn get_config_files(&self) -> Vec<PathBuf>
pub fn get_config_files(&self) -> Vec<PathBuf>
Get list of available config file paths
Sourcepub fn open_file_selector(&mut self)
pub fn open_file_selector(&mut self)
Open file selector for creating a new daemon
Sourcepub fn open_editor_create(&mut self, config_path: PathBuf)
pub fn open_editor_create(&mut self, config_path: PathBuf)
Open editor for a new daemon with the selected config file
Sourcepub fn open_editor_edit(&mut self, daemon_id: &str)
pub fn open_editor_edit(&mut self, daemon_id: &str)
Open editor for an existing daemon
Sourcepub fn close_editor(&mut self)
pub fn close_editor(&mut self)
Close the editor and return to dashboard
Sourcepub fn save_editor_config(&mut self) -> Result<bool>
pub fn save_editor_config(&mut self) -> Result<bool>
Save the current editor state to config file. Returns Ok(true) if saved successfully, Ok(false) if validation/duplicate error (don’t close editor).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin 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 moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Set the foreground color generically Read more
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Set the background color generically. Read more
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Change the foreground color to black
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Change the background color to black
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Change the foreground color to red
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Change the background color to red
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Change the foreground color to green
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Change the background color to green
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Change the foreground color to yellow
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Change the background color to yellow
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Change the foreground color to blue
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Change the background color to blue
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Change the foreground color to magenta
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to magenta
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Change the foreground color to purple
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to purple
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Change the foreground color to cyan
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Change the background color to cyan
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Change the foreground color to white
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Change the background color to white
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Change the foreground color to the terminal default
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Change the background color to the terminal default
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Change the foreground color to bright black
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Change the background color to bright black
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Change the foreground color to bright red
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Change the background color to bright red
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Change the foreground color to bright green
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Change the background color to bright green
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Change the foreground color to bright yellow
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Change the background color to bright yellow
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Change the foreground color to bright blue
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Change the background color to bright blue
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright magenta
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright magenta
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright purple
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright purple
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Change the foreground color to bright cyan
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Change the background color to bright cyan
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Change the foreground color to bright white
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Change the background color to bright white
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Make the text bold
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Make the text dim
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Make the text italicized
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Make the text underlined
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Make the text blink
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Make the text blink (but fast!)
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Swap the foreground and background colors
Hide the text
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Cross out the text
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the foreground color at runtime. Only use if you do not know which color will be used at
compile-time. If the color is constant, use either
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the background color at runtime. Only use if you do not know what color to use at
compile-time. If the color is constant, use either
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read moreSource§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the foreground color to a specific RGB value.
Source§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the background color to a specific RGB value.
Source§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Sets the foreground color to an RGB value.
Source§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Sets the background color to an RGB value.