parent
87367644cc
commit
94723e9d12
@ -1,9 +1,11 @@
|
|||||||
mod command;
|
mod command;
|
||||||
mod parse;
|
mod parse;
|
||||||
mod parser_error;
|
mod parser_error;
|
||||||
|
mod quit;
|
||||||
mod set;
|
mod set;
|
||||||
|
|
||||||
pub use command::Command;
|
pub use command::Command;
|
||||||
pub use parse::Parse;
|
pub use parse::Parse;
|
||||||
pub use parser_error::ParserError;
|
pub use parser_error::ParserError;
|
||||||
|
pub use quit::*;
|
||||||
pub use set::*;
|
pub use set::*;
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
use mio::Token;
|
||||||
|
|
||||||
|
use crate::command::Command;
|
||||||
|
use crate::database::Db;
|
||||||
|
use crate::queue::SendQueue;
|
||||||
|
|
||||||
|
impl Command {
|
||||||
|
pub fn dispatch_quit(&self, _: String, token: Token, _: &mut Db) -> SendQueue {
|
||||||
|
SendQueue(vec![(token, "Goodbye".into(), false)].into())
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue