pub trait RatatuiApp {
// Required methods
fn input(
&mut self,
data: &[u8],
env: impl RatatuiEnv + Send,
) -> impl Future<Output = ()> + Send;
fn draw(&mut self, frame: &mut Frame<'_>);
}Expand description
A ratatui application designed to be driven by a
ChannelServer.
Required Methods§
Sourcefn input(
&mut self,
data: &[u8],
env: impl RatatuiEnv + Send,
) -> impl Future<Output = ()> + Send
fn input( &mut self, data: &[u8], env: impl RatatuiEnv + Send, ) -> impl Future<Output = ()> + Send
Process new input from the channel.
Sourcefn draw(&mut self, frame: &mut Frame<'_>)
fn draw(&mut self, frame: &mut Frame<'_>)
Render the app to the ratatui::Frame.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".