pub struct App {
pub mode: Mode,
pub board: BoardState,
pub detail: Option<DetailState>,
pub form: Option<FormState>,
pub confirm_delete_target: Option<String>,
pub store: Store,
pub status_msg: Option<String>,
pub quit: bool,
pub active_config: usize,
pub tabs: BoardTabs,
pub filter_modal: Option<FilterModal>,
pub settings: Option<SettingsModal>,
/* private fields */
}Fields§
§mode: Mode§board: BoardState§detail: Option<DetailState>§form: Option<FormState>§confirm_delete_target: Option<String>§store: Store§status_msg: Option<String>§quit: bool§active_config: usizeThe active named board configuration index into Config::configs()
(session state only — never persisted). rebuild_board/apply_filter
must not reset it.
tabs: BoardTabsPersistent tabs bar of all named boards (DM-01M2MH8J01DZHV3JMT76XX38KX).
filter_modal: Option<FilterModal>§settings: Option<SettingsModal>Settings modal (board/column configuration via s).
Implementations§
Source§impl App
impl App
pub fn new(config: &Config) -> Result<Self>
pub fn handle_key(&mut self, key: KeyEvent) -> Result<Action>
Sourcepub fn refresh_from_disk(&mut self) -> Result<()>
pub fn refresh_from_disk(&mut self) -> Result<()>
Re-read issues from disk and rebuild the board, so edits made outside
tix appear without a manual keypress (issue #10, driven by
crate::watcher::FsWatcher). A read error (e.g. a partially written
file) leaves the current board in place.
pub fn after_editor(&mut self, filename: &str)
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> 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