1 2 3 4 5 6 7 8 9
use ratatui::Frame; use crate::{message::Message, command::Command}; pub trait Screen { fn render(&self, f: &mut Frame<'_>); fn update(&mut self, message: Message) -> Option<Command>; }