pub struct AppHandler { /* private fields */ }
Expand description
handles the app
Implementations§
Source§impl AppHandler
impl AppHandler
pub fn new(app: App, db: Repository, size: Rect) -> AppHandler
pub fn should_exit(&self) -> bool
pub fn is_editor_mode(&self) -> bool
pub fn handle_event( &mut self, event: Event<KeyEvent>, ) -> Result<(), Box<dyn Error>>
pub fn handle_edit(&mut self) -> Result<(), Box<dyn Error>>
pub fn render_main_frame( &self, frame: &mut Frame<'_, CrosstermBackend<Stdout>>, ) -> Result<(), Box<dyn Error>>
pub fn render( &self, frame: &mut Frame<'_, CrosstermBackend<Stdout>>, ) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl !Freeze for AppHandler
impl !RefUnwindSafe for AppHandler
impl Send for AppHandler
impl !Sync for AppHandler
impl Unpin for AppHandler
impl !UnwindSafe for AppHandler
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