osdb/src/meta_commands.rs

17 lines
331 B
Rust
Raw Normal View History

#[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 },
}
}
}