Skip to main content

RatatuiApp

Trait RatatuiApp 

Source
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§

Source

fn input( &mut self, data: &[u8], env: impl RatatuiEnv + Send, ) -> impl Future<Output = ()> + Send

Process new input from the channel.

Source

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".

Implementors§