#[derive(Debug, Eq, PartialEq)] pub enum MetaCommand { Exit, } pub struct MetaCommandExecuteResult { pub should_exit: bool, } impl MetaCommand { pub fn execute(&self) -> MetaCommandExecuteResult { match self { MetaCommand::Exit => MetaCommandExecuteResult { should_exit: true }, } } }