pub struct App {Show 13 fields
pub pane: Pane,
pub detail_tab: DetailTab,
pub focus: Focus,
pub rows: Vec<BoardRow>,
pub selected: usize,
pub project: Option<String>,
pub projects: Vec<String>,
pub detail: Option<IssueDetail>,
pub detail_body: String,
pub prompt: Option<(PromptKind, String)>,
pub confirm: Option<ConfirmKind>,
pub help: bool,
pub clipboard: String,
/* private fields */
}Expand description
Interactive board. Talks only to BoardBackend.
Fields§
§pane: Pane§detail_tab: DetailTab§focus: Focus§rows: Vec<BoardRow>§selected: usize§project: Option<String>§projects: Vec<String>§detail: Option<IssueDetail>§detail_body: String§prompt: Option<(PromptKind, String)>§confirm: Option<ConfirmKind>§help: bool§clipboard: StringImplementations§
Source§impl App
impl App
pub fn open_core(layout: Layout, agent: String) -> Result<Self>
pub fn with_backend( backend: Box<dyn BoardBackend>, agent: String, status: ServeStatus, ) -> Result<Self>
pub fn serve_status(&self) -> ServeStatus
pub fn agent(&self) -> &str
pub fn generation(&self) -> u64
pub fn revision(&self) -> u64
pub fn selected_id(&self) -> Option<&str>
pub fn selected_state(&self) -> Option<&str>
pub fn backend(&self) -> &dyn BoardBackend
pub fn replace_backend( &mut self, backend: Box<dyn BoardBackend>, status: ServeStatus, )
Sourcepub fn attach(
&mut self,
socket: &Path,
offline: bool,
hooks: &AttachHooks,
) -> Result<()>
pub fn attach( &mut self, socket: &Path, offline: bool, hooks: &AttachHooks, ) -> Result<()>
Post-paint attach. --offline never probes the socket.
pub fn status_line(&self) -> String
pub fn reload(&mut self) -> Result<()>
pub fn poll_updates(&mut self)
pub fn handle_key(&mut self, key: KeyEvent) -> Action
pub fn prompt_line(&self) -> Option<String>
pub fn confirm_line(&self) -> Option<String>
pub fn help_text(&self) -> &'static str
Auto Trait Implementations§
impl !RefUnwindSafe for App
impl !UnwindSafe for App
impl Freeze for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin 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