App

Struct App 

Source
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§main_menu: MainMenu§widgets: Widgets<'a>

Implementations§

Source§

impl App<'_>

Source

pub fn new(io_tx: Sender<IoEvent>, debug_mode: bool) -> Self

Source

pub async fn do_action(&mut self, key: Key) -> AppReturn

Source

pub async fn dispatch(&mut self, action: IoEvent)

Source

pub async fn handle_mouse(&mut self, mouse_action: Mouse) -> AppReturn

Source

pub fn get_first_keybinding( &self, keybinding_enum: KeyBindingEnum, ) -> Option<String>

Source

pub fn status(&self) -> &AppStatus

Source

pub fn is_loading(&self) -> bool

Source

pub fn initialized(&mut self)

Source

pub fn loaded(&mut self)

Source

pub fn get_current_focus(&self) -> &Focus

Source

pub fn set_config_state(&mut self, config_state: TableState)

Source

pub fn config_next(&mut self)

Source

pub fn config_prv(&mut self)

Source

pub fn main_menu_next(&mut self)

Source

pub fn main_menu_prv(&mut self)

Source

pub fn load_save_next(&mut self, cloud_mode: bool)

Source

pub fn load_save_prv(&mut self, cloud_mode: bool)

Source

pub fn config_state(&self) -> &TableState

Source

pub fn edit_keybindings_next(&mut self)

Source

pub fn edit_keybindings_prv(&mut self)

Source

pub fn help_next(&mut self)

Source

pub fn help_prv(&mut self)

Source

pub fn select_default_view_next(&mut self)

Source

pub fn select_default_view_prv(&mut self)

Source

pub fn command_palette_command_search_prv(&mut self)

Source

pub fn command_palette_command_search_next(&mut self)

Source

pub fn command_palette_card_search_next(&mut self)

Source

pub fn command_palette_card_search_prv(&mut self)

Source

pub fn command_palette_board_search_next(&mut self)

Source

pub fn command_palette_board_search_prv(&mut self)

Source

pub fn send_info_toast( &mut self, message: &str, custom_duration: Option<Duration>, )

Source

pub fn send_error_toast( &mut self, message: &str, custom_duration: Option<Duration>, )

Source

pub fn send_warning_toast( &mut self, message: &str, custom_duration: Option<Duration>, )

Source

pub fn select_card_status_prv(&mut self)

Source

pub fn select_card_status_next(&mut self)

Source

pub fn select_change_theme_next(&mut self)

Source

pub fn select_change_theme_prv(&mut self)

Source

pub fn select_create_theme_next(&mut self)

Source

pub fn select_create_theme_prv(&mut self)

Source

pub fn select_edit_style_fg_next(&mut self)

Source

pub fn select_edit_style_fg_prv(&mut self)

Source

pub fn select_edit_style_bg_next(&mut self)

Source

pub fn select_edit_style_bg_prv(&mut self)

Source

pub fn select_edit_style_modifier_next(&mut self)

Source

pub fn select_edit_style_modifier_prv(&mut self)

Source

pub fn select_card_priority_next(&mut self)

Source

pub fn select_card_priority_prv(&mut self)

Source

pub fn filter_by_tag_popup_next(&mut self)

Source

pub fn filter_by_tag_popup_prv(&mut self)

Source

pub fn change_date_format_popup_next(&mut self)

Source

pub fn change_date_format_popup_prv(&mut self)

Source

pub fn undo(&mut self)

Source

pub fn redo(&mut self)

Source

pub fn log_next(&mut self)

Source

pub fn log_prv(&mut self)

Source

pub fn tag_picker_next(&mut self)

Source

pub fn tag_picker_prv(&mut self)

Source

pub fn set_popup(&mut self, popup: PopUp)

Source

pub fn close_popup(&mut self)

Source

pub fn set_view(&mut self, view: View)

Source

pub fn get_first_next_focus_keybinding(&self) -> &Key

Source

pub fn get_first_prv_focus_keybinding(&self) -> &Key

Source

pub fn calculate_tags(&self) -> Vec<(String, u32)>

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more