1 2 3 4 5 6 7 8 9 10 11
pub mod app; pub mod message; pub mod styles; pub mod widgets; pub trait View { fn view(&self, msg: message::Message) -> Option<Box<dyn FnMut() + Send>>; fn sleep_duration(&self) -> u64; #[allow(dead_code)] fn light_mode(&self) -> bool; }