mirror of
https://github.com/mrfluffy-dev/kami.git
synced 2026-01-17 04:50:32 +00:00
9 lines
237 B
Rust
9 lines
237 B
Rust
use std::io;
|
|
use tui::{backend::Backend, Frame, Terminal};
|
|
|
|
pub trait KamiApp {
|
|
fn new() -> Self;
|
|
fn run<B: Backend>(&mut self, terminal: &mut Terminal<B>) -> io::Result<()>;
|
|
fn ui<B: Backend>(&mut self, f: &mut Frame<B>);
|
|
}
|