1 2 3 4 5 6 7 8 9
use {Error, protocol}; use server::client::Action; /// Handle the 'QUIT' command. pub fn handle() -> Result<Action, Error> { Ok(Action::Reply(protocol::Reply::new( protocol::reply::code::SERVICE_CLOSING_CONTROL_CONNECTION, "goodbye"))) }