pub struct App {Show 19 fields
pub current_view: View,
pub layout_mode: LayoutMode,
pub theme: Theme,
pub tui_theme: TuiTheme,
pub features: Vec<Feature>,
pub selected_index: usize,
pub show_help: bool,
pub should_quit: bool,
pub terminal_width: u16,
pub terminal_height: u16,
pub scroll_offset: usize,
pub log_messages: Vec<String>,
pub db: Option<Arc<Database>>,
pub db_path: Option<PathBuf>,
pub db_error: Option<String>,
pub last_refresh: Instant,
pub refresh_interval: Duration,
pub status_message: Option<(String, Instant)>,
pub feature_stats: Option<FeatureStats>,
}Fields§
§current_view: View§layout_mode: LayoutMode§theme: Theme§tui_theme: TuiTheme§features: Vec<Feature>§selected_index: usize§show_help: bool§should_quit: bool§terminal_width: u16§terminal_height: u16§scroll_offset: usize§log_messages: Vec<String>§db: Option<Arc<Database>>§db_path: Option<PathBuf>§db_error: Option<String>§last_refresh: Instant§refresh_interval: Duration§status_message: Option<(String, Instant)>§feature_stats: Option<FeatureStats>Implementations§
Source§impl App
impl App
pub fn new() -> Self
pub fn with_db_path(db_path: Option<PathBuf>) -> Self
pub fn render(&self, frame: &mut Frame<'_>)
pub fn handle_key(&mut self, key: KeyEvent) -> bool
pub fn resize(&mut self, width: u16, height: u16)
pub fn add_log(&mut self, message: String)
pub fn set_status(&mut self, message: String)
pub fn get_status_message(&self) -> Option<&str>
pub fn should_refresh(&self) -> bool
pub fn auto_refresh(&mut self)
pub fn load_from_database(&mut self)
pub fn load_demo_data(&mut self)
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 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