From 1faa10177811a3a2fb2ab776899be7377b7130ac Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Thu, 11 Jul 2019 12:25:51 +0200 Subject: [PATCH] Move the response to a dedicated file --- opensmtpd/src/lib.rs | 6 ++---- opensmtpd/src/response.rs | 11 +++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 opensmtpd/src/response.rs diff --git a/opensmtpd/src/lib.rs b/opensmtpd/src/lib.rs index a8b059b..757510a 100644 --- a/opensmtpd/src/lib.rs +++ b/opensmtpd/src/lib.rs @@ -10,6 +10,7 @@ mod entry; mod errors; mod event_handlers; mod logger; +mod response; mod session_handler; use crate::session_handler::SessionHandler; @@ -24,6 +25,7 @@ pub use crate::entry::{Entry, Event}; pub use crate::errors::Error; pub use crate::event_handlers::{Callback, EventHandler, MatchEvent}; pub use crate::logger::SmtpdLogger; +pub use crate::response::Response; pub use opensmtpd_derive::{event, report}; #[macro_export] @@ -39,10 +41,6 @@ macro_rules! handlers { }; } -pub enum Response { - None, -} - #[derive(Clone, Default)] pub struct NoContext; diff --git a/opensmtpd/src/response.rs b/opensmtpd/src/response.rs new file mode 100644 index 0000000..a0a75df --- /dev/null +++ b/opensmtpd/src/response.rs @@ -0,0 +1,11 @@ +// Copyright (c) 2019 Rodolphe Bréard +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +pub enum Response { + None, +}