Skip to main content

App

Struct App 

Source
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: usize

The active named board configuration index into Config::configs() (session state only — never persisted). rebuild_board/apply_filter must not reset it.

§tabs: BoardTabs

Persistent 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

Source

pub fn new(config: &Config) -> Result<Self>

Source

pub fn handle_key(&mut self, key: KeyEvent) -> Result<Action>

Source

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.

Source

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> 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, 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.