pub trait TuiApp {
type Exit;
// Required methods
fn draw(&mut self, frame: &mut Frame<'_>);
fn handle_event(&mut self, event: Event) -> ControlFlow<Self::Exit>;
}Expand description
An interactive terminal application.
Required Associated Types§
Required Methods§
Sourcefn handle_event(&mut self, event: Event) -> ControlFlow<Self::Exit>
fn handle_event(&mut self, event: Event) -> ControlFlow<Self::Exit>
Handles one terminal event.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".