pub struct App<'a> {Show 13 fields
pub debug_mode: bool,
pub state: AppState<'a>,
pub boards: Boards,
pub filtered_boards: Boards,
pub preview_boards_and_cards: Option<Boards>,
pub config: AppConfig,
pub visible_boards_and_cards: LinkedHashMap<(u64, u64), Vec<(u64, u64)>>,
pub last_io_event_time: Option<Instant>,
pub all_themes: Vec<Theme>,
pub current_theme: Theme,
pub action_history_manager: ActionHistoryManager,
pub main_menu: MainMenu,
pub widgets: Widgets<'a>,
/* private fields */
}Fields§
§debug_mode: bool§state: AppState<'a>§boards: Boards§filtered_boards: Boards§preview_boards_and_cards: Option<Boards>§config: AppConfig§visible_boards_and_cards: LinkedHashMap<(u64, u64), Vec<(u64, u64)>>§last_io_event_time: Option<Instant>§all_themes: Vec<Theme>§current_theme: Theme§action_history_manager: ActionHistoryManager§widgets: Widgets<'a>Implementations§
Source§impl App<'_>
impl App<'_>
pub fn new(io_tx: Sender<IoEvent>, debug_mode: bool) -> Self
pub async fn do_action(&mut self, key: Key) -> AppReturn
pub async fn dispatch(&mut self, action: IoEvent)
pub async fn handle_mouse(&mut self, mouse_action: Mouse) -> AppReturn
pub fn get_first_keybinding( &self, keybinding_enum: KeyBindingEnum, ) -> Option<String>
pub fn status(&self) -> &AppStatus
pub fn is_loading(&self) -> bool
pub fn initialized(&mut self)
pub fn loaded(&mut self)
pub fn get_current_focus(&self) -> &Focus
pub fn set_config_state(&mut self, config_state: TableState)
pub fn config_next(&mut self)
pub fn config_prv(&mut self)
pub fn load_save_next(&mut self, cloud_mode: bool)
pub fn load_save_prv(&mut self, cloud_mode: bool)
pub fn config_state(&self) -> &TableState
pub fn edit_keybindings_next(&mut self)
pub fn edit_keybindings_prv(&mut self)
pub fn help_next(&mut self)
pub fn help_prv(&mut self)
pub fn select_default_view_next(&mut self)
pub fn select_default_view_prv(&mut self)
pub fn command_palette_command_search_prv(&mut self)
pub fn command_palette_command_search_next(&mut self)
pub fn command_palette_card_search_next(&mut self)
pub fn command_palette_card_search_prv(&mut self)
pub fn command_palette_board_search_next(&mut self)
pub fn command_palette_board_search_prv(&mut self)
pub fn send_info_toast( &mut self, message: &str, custom_duration: Option<Duration>, )
pub fn send_error_toast( &mut self, message: &str, custom_duration: Option<Duration>, )
pub fn send_warning_toast( &mut self, message: &str, custom_duration: Option<Duration>, )
pub fn select_card_status_prv(&mut self)
pub fn select_card_status_next(&mut self)
pub fn select_change_theme_next(&mut self)
pub fn select_change_theme_prv(&mut self)
pub fn select_create_theme_next(&mut self)
pub fn select_create_theme_prv(&mut self)
pub fn select_edit_style_fg_next(&mut self)
pub fn select_edit_style_fg_prv(&mut self)
pub fn select_edit_style_bg_next(&mut self)
pub fn select_edit_style_bg_prv(&mut self)
pub fn select_edit_style_modifier_next(&mut self)
pub fn select_edit_style_modifier_prv(&mut self)
pub fn select_card_priority_next(&mut self)
pub fn select_card_priority_prv(&mut self)
pub fn filter_by_tag_popup_next(&mut self)
pub fn filter_by_tag_popup_prv(&mut self)
pub fn change_date_format_popup_next(&mut self)
pub fn change_date_format_popup_prv(&mut self)
pub fn undo(&mut self)
pub fn redo(&mut self)
pub fn log_next(&mut self)
pub fn log_prv(&mut self)
pub fn tag_picker_next(&mut self)
pub fn tag_picker_prv(&mut self)
pub fn set_popup(&mut self, popup: PopUp)
pub fn close_popup(&mut self)
pub fn set_view(&mut self, view: View)
pub fn get_first_next_focus_keybinding(&self) -> &Key
pub fn get_first_prv_focus_keybinding(&self) -> &Key
Auto Trait Implementations§
impl<'a> !Freeze for App<'a>
impl<'a> RefUnwindSafe for App<'a>
impl<'a> Send for App<'a>
impl<'a> Sync for App<'a>
impl<'a> Unpin for App<'a>
impl<'a> UnwindSafe for App<'a>
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