pub trait Widget: Debug {
Show 21 methods // Required methods fn get_common_state_mut(&mut self) -> &mut CommonState; fn get_common_state(&self) -> &CommonState; fn get_notification_queue(&mut self) -> &mut VecDeque<Notification>; fn render( &mut self, rect: Rect, frame: &mut Frame<'_, CrosstermBackend<Stderr>> ); // Provided methods fn get_help_text_notif(&self) -> AppResult<Option<Notification>> { ... } fn can_handle_key_set(&self) -> IndexSet<&KeyCode> { ... } fn set_active(&mut self) -> AppResult<Option<Notification>> { ... } fn is_active(&self) -> bool { ... } fn get_help_texts(&self) -> &IndexSet<HelpText> { ... } fn get_help_texts_mut(&mut self) -> &mut IndexSet<HelpText> { ... } fn is_navigable(&self) -> bool { ... } fn set_inactive(&mut self) { ... } fn get_widget_name(&self) -> WidgetName { ... } fn get_task_sender(&self) -> &ChannelRequestSender { ... } fn show_spinner(&mut self) -> AppResult<()> { ... } fn hide_spinner(&mut self) -> AppResult<()> { ... } fn spinner_notif(&mut self, show: bool) -> AppResult<()> { ... } fn handler(&mut self, _event: KeyEvent) -> AppResult<Option<Notification>> { ... } fn process_task_response( &mut self, _response: TaskResponse ) -> AppResult<()> { ... } fn setup(&mut self) -> AppResult<()> { ... } fn process_notification( &mut self, _notification: Notification ) -> AppResult<Option<Notification>> { ... }
}

Required Methods§

source

fn get_common_state_mut(&mut self) -> &mut CommonState

source

fn get_common_state(&self) -> &CommonState

source

fn get_notification_queue(&mut self) -> &mut VecDeque<Notification>

source

fn render( &mut self, rect: Rect, frame: &mut Frame<'_, CrosstermBackend<Stderr>> )

Provided Methods§

source

fn get_help_text_notif(&self) -> AppResult<Option<Notification>>

source

fn can_handle_key_set(&self) -> IndexSet<&KeyCode>

source

fn set_active(&mut self) -> AppResult<Option<Notification>>

source

fn is_active(&self) -> bool

source

fn get_help_texts(&self) -> &IndexSet<HelpText>

source

fn get_help_texts_mut(&mut self) -> &mut IndexSet<HelpText>

source

fn is_navigable(&self) -> bool

source

fn set_inactive(&mut self)

source

fn get_widget_name(&self) -> WidgetName

source

fn get_task_sender(&self) -> &ChannelRequestSender

source

fn show_spinner(&mut self) -> AppResult<()>

source

fn hide_spinner(&mut self) -> AppResult<()>

source

fn spinner_notif(&mut self, show: bool) -> AppResult<()>

source

fn handler(&mut self, _event: KeyEvent) -> AppResult<Option<Notification>>

source

fn process_task_response(&mut self, _response: TaskResponse) -> AppResult<()>

source

fn setup(&mut self) -> AppResult<()>

source

fn process_notification( &mut self, _notification: Notification ) -> AppResult<Option<Notification>>

Implementors§