16 lines
331 B
Rust
16 lines
331 B
Rust
#[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 },
|
|
}
|
|
}
|
|
}
|